Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ccb9da5f
Commit
ccb9da5f
authored
Aug 02, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Aug 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Report accumulation buffer bits for pixel formats.
parent
17fe57e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
opengl.c
dlls/winex11.drv/opengl.c
+40
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
ccb9da5f
...
...
@@ -1226,7 +1226,18 @@ int X11DRV_DescribePixelFormat(X11DRV_PDEVICE *physDev,
ppfd
->
cAlphaBits
=
0
;
ppfd
->
cAlphaShift
=
0
;
}
/* Accums : to do ... */
/* Accum RGBA bits */
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_RED_SIZE
,
&
rb
);
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_GREEN_SIZE
,
&
gb
);
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_BLUE_SIZE
,
&
bb
);
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_ALPHA_SIZE
,
&
ab
);
ppfd
->
cAccumBits
=
rb
+
gb
+
bb
+
ab
;
ppfd
->
cAccumRedBits
=
rb
;
ppfd
->
cAccumGreenBits
=
gb
;
ppfd
->
cAccumBlueBits
=
bb
;
ppfd
->
cAccumAlphaBits
=
ab
;
/* Depth bits */
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_DEPTH_SIZE
,
&
value
);
...
...
@@ -2685,6 +2696,34 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelF
curGLXAttr
=
GLX_FLOAT_COMPONENTS_NV
;
break
;
case
WGL_ACCUM_RED_BITS_ARB
:
curGLXAttr
=
GLX_ACCUM_RED_SIZE
;
break
;
case
WGL_ACCUM_GREEN_BITS_ARB
:
curGLXAttr
=
GLX_ACCUM_GREEN_SIZE
;
break
;
case
WGL_ACCUM_BLUE_BITS_ARB
:
curGLXAttr
=
GLX_ACCUM_BLUE_SIZE
;
break
;
case
WGL_ACCUM_ALPHA_BITS_ARB
:
curGLXAttr
=
GLX_ACCUM_ALPHA_SIZE
;
break
;
case
WGL_ACCUM_BITS_ARB
:
if
(
!
fmt
)
goto
pix_error
;
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_RED_SIZE
,
&
tmp
);
if
(
hTest
)
goto
get_error
;
piValues
[
i
]
=
tmp
;
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_GREEN_SIZE
,
&
tmp
);
if
(
hTest
)
goto
get_error
;
piValues
[
i
]
+=
tmp
;
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_BLUE_SIZE
,
&
tmp
);
if
(
hTest
)
goto
get_error
;
piValues
[
i
]
+=
tmp
;
hTest
=
pglXGetFBConfigAttrib
(
gdi_display
,
fmt
->
fbconfig
,
GLX_ACCUM_ALPHA_SIZE
,
&
tmp
);
if
(
hTest
)
goto
get_error
;
piValues
[
i
]
+=
tmp
;
continue
;
default
:
FIXME
(
"unsupported %x WGL Attribute
\n
"
,
curWGLAttr
);
}
...
...
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