Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5fe5def3
Commit
5fe5def3
authored
Apr 29, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Apr 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: We were already advertising GL_EXT_framebuffer_sRGB but not the…
wgl: We were already advertising GL_EXT_framebuffer_sRGB but not the corresponding WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT.
parent
17621fb7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
opengl.c
dlls/winex11.drv/opengl.c
+12
-0
wgl.h
include/wine/wgl.h
+5
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
5fe5def3
...
...
@@ -780,6 +780,11 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
* TODO: wglChoosePixelFormat
*/
break
;
case
WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT
:
pop
=
iWGLAttr
[
++
cur
];
PUSH2
(
oGLXAttr
,
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
,
pop
);
TRACE
(
"pAttr[%d] = GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT: %x
\n
"
,
cur
,
pop
);
break
;
default
:
FIXME
(
"unsupported %x WGL Attribute
\n
"
,
iWGLAttr
[
cur
]);
...
...
@@ -2840,6 +2845,10 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelF
curGLXAttr
=
GLX_FLOAT_COMPONENTS_NV
;
break
;
case
WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT
:
curGLXAttr
=
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
;
break
;
case
WGL_ACCUM_RED_BITS_ARB
:
curGLXAttr
=
GLX_ACCUM_RED_SIZE
;
break
;
...
...
@@ -3362,6 +3371,9 @@ static void X11DRV_WineGL_LoadExtensions(void)
* Games like Call of Duty and K.O.T.O.R. rely on it. Further our emulation is good enough. */
register_extension
(
&
WGL_EXT_swap_control
);
if
(
glxRequireExtension
(
"GLX_EXT_framebuffer_sRGB"
))
register_extension_string
(
"WGL_EXT_framebuffer_sRGB"
);
/* The OpenGL extension GL_NV_vertex_array_range adds wgl/glX functions which aren't exported as 'real' wgl/glX extensions. */
if
(
strstr
(
WineGLInfo
.
glExtensions
,
"GL_NV_vertex_array_range"
)
!=
NULL
)
register_extension
(
&
WGL_NV_vertex_array_range
);
...
...
include/wine/wgl.h
View file @
5fe5def3
...
...
@@ -176,6 +176,11 @@
#define GL_FLOAT_CLEAR_COLOR_VALUE_NV 0x888D
#define GL_FLOAT_RGBA_MODE_NV 0x888E
/** WGL_EXT_framebuffer_sRGB */
#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
#ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT
# define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
#endif
/**
* WGL_ATI_pixel_format_float / WGL_ARB_color_buffer_float
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment