Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
f6bb86e1
Commit
f6bb86e1
authored
15 years ago
by
Stefan Dösinger
Committed by
Alexandre Julliard
15 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wined3d: Add GL_ARB_map_buffer_range.
parent
8fc1fc49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/wined3d/directx.c
+7
-0
7 additions, 0 deletions
dlls/wined3d/directx.c
dlls/wined3d/wined3d_gl.h
+19
-0
19 additions, 0 deletions
dlls/wined3d/wined3d_gl.h
with
26 additions
and
0 deletions
dlls/wined3d/directx.c
+
7
−
0
View file @
f6bb86e1
...
...
@@ -63,6 +63,7 @@ static const struct {
{
"GL_ARB_half_float_pixel"
,
ARB_HALF_FLOAT_PIXEL
,
0
},
{
"GL_ARB_half_float_vertex"
,
ARB_HALF_FLOAT_VERTEX
,
0
},
{
"GL_ARB_imaging"
,
ARB_IMAGING
,
0
},
{
"GL_ARB_map_buffer_range"
,
ARB_MAP_BUFFER_RANGE
,
0
},
{
"GL_ARB_multisample"
,
ARB_MULTISAMPLE
,
0
},
/* needs GLX_ARB_MULTISAMPLE as well */
{
"GL_ARB_multitexture"
,
ARB_MULTITEXTURE
,
0
},
{
"GL_ARB_occlusion_query"
,
ARB_OCCLUSION_QUERY
,
0
},
...
...
@@ -1837,6 +1838,12 @@ static BOOL IWineD3DImpl_FillGLCaps(struct wined3d_driver_info *driver_info, str
gl_info
->
supported
[
ARB_HALF_FLOAT_PIXEL
]
=
TRUE
;
}
}
if
(
gl_info
->
supported
[
ARB_MAP_BUFFER_RANGE
])
{
/* GL_ARB_map_buffer_range and GL_APPLE_flush_buffer_range provide the same
* functionality. Prefer the ARB extension */
gl_info
->
supported
[
APPLE_FLUSH_BUFFER_RANGE
]
=
FALSE
;
}
if
(
gl_info
->
supported
[
ARB_TEXTURE_CUBE_MAP
])
{
TRACE_
(
d3d_caps
)(
" IMPLIED: NVIDIA (NV) Texture Gen Reflection support.
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_gl.h
+
19
−
0
View file @
f6bb86e1
...
...
@@ -1743,6 +1743,7 @@ typedef enum wined3d_gl_extension
ARB_HALF_FLOAT_PIXEL
,
ARB_HALF_FLOAT_VERTEX
,
ARB_IMAGING
,
ARB_MAP_BUFFER_RANGE
,
ARB_MULTISAMPLE
,
ARB_MULTITEXTURE
,
ARB_OCCLUSION_QUERY
,
...
...
@@ -2225,6 +2226,19 @@ typedef void (WINE_GLAPI *PGLFNFRAMEBUFFERTEXTUREFACEARBPROC)(GLenum target, GLe
typedef
void
(
WINE_GLAPI
*
PGLFNBLENDCOLORPROC
)(
GLclampf
red
,
GLclampf
green
,
GLclampf
blue
,
GLclampf
alpha
);
typedef
void
(
WINE_GLAPI
*
PGLFNBLENDEQUATIONPROC
)(
GLenum
mode
);
/* GL_ARB_map_buffer_range */
#ifndef GL_ARB_map_buffer_range
#define GL_ARB_map_buffer_range 1
#define GL_MAP_READ_BIT 0x0001
#define GL_MAP_WRITE_BIT 0x0002
#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
#endif
typedef
GLvoid
*
(
WINE_GLAPI
*
PGLFNMAPBUFFERRANGEPROC
)(
GLenum
target
,
GLintptr
offset
,
GLsizeiptr
length
,
GLbitfield
access
);
typedef
void
(
WINE_GLAPI
*
PGLFNFLUSHMAPPEDBUFFERRANGEPROC
)(
GLenum
target
,
GLintptr
offset
,
GLsizeiptr
length
);
/* GL_ARB_multisample */
#ifndef GL_ARB_multisample
#define GL_ARB_multisample 1
...
...
@@ -3934,6 +3948,11 @@ typedef BOOL (WINAPI *WINED3D_PFNWGLSETPIXELFORMATWINE)(HDC hdc, int iPixelForma
glBlendColorEXT, EXT_BLEND_COLOR, NULL) \
USE_GL_FUNC(PGLFNBLENDEQUATIONPROC, \
glBlendEquationEXT, EXT_BLEND_MINMAX, NULL) \
/* GL_ARB_map_buffer_range */
\
USE_GL_FUNC(PGLFNMAPBUFFERRANGEPROC, \
glMapBufferRange, ARB_MAP_BUFFER_RANGE, NULL) \
USE_GL_FUNC(PGLFNFLUSHMAPPEDBUFFERRANGEPROC, \
glFlushMappedBufferRange, ARB_MAP_BUFFER_RANGE, NULL) \
/* GL_ARB_multisample */
\
USE_GL_FUNC(WINED3D_PFNGLSAMPLECOVERAGEARBPROC, \
glSampleCoverageARB, ARB_MULTISAMPLE, NULL) \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment