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
cc96ce43
Commit
cc96ce43
authored
May 16, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Add WGL_SWAP_METHOD_ARB support.
parent
c4e60183
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
opengl.c
dlls/winex11.drv/opengl.c
+14
-0
wgl.h
include/wine/wgl.h
+4
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
cc96ce43
...
...
@@ -730,6 +730,12 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
TRACE
(
"pAttr[%d] = WGL_SUPPORT_OPENGL_ARB: %d
\n
"
,
cur
,
pop
);
break
;
case
WGL_SWAP_METHOD_ARB
:
pop
=
iWGLAttr
[
++
cur
];
/* For now we ignore this and just return SWAP_EXCHANGE */
TRACE
(
"pAttr[%d] = WGL_SWAP_METHOD_ARB: %#x
\n
"
,
cur
,
pop
);
break
;
case
WGL_PBUFFER_LARGEST_ARB
:
pop
=
iWGLAttr
[
++
cur
];
PUSH2
(
oGLXAttr
,
GLX_LARGEST_PBUFFER
,
pop
);
...
...
@@ -2901,6 +2907,14 @@ static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelF
piValues
[
i
]
=
GL_FALSE
;
continue
;
case
WGL_SWAP_METHOD_ARB
:
/* For now return SWAP_EXCHANGE_ARB which is the best type of buffer switch available.
* Later on we can also use GLX_OML_swap_method on drivers which support this. At this
* point only ATI offers this.
*/
piValues
[
i
]
=
WGL_SWAP_EXCHANGE_ARB
;
break
;
case
WGL_PBUFFER_LARGEST_ARB
:
curGLXAttr
=
GLX_LARGEST_PBUFFER
;
break
;
...
...
include/wine/wgl.h
View file @
cc96ce43
...
...
@@ -79,6 +79,10 @@
#define WGL_GENERIC_ACCELERATION_ARB 0x2026
#define WGL_FULL_ACCELERATION_ARB 0x2027
#define WGL_SWAP_EXCHANGE_ARB 0x2028
#define WGL_SWAP_COPY_ARB 0x2029
#define WGL_SWAP_UNDEFINED_ARB 0x202A
#define WGL_PBUFFER_WIDTH_ARB 0x2034
#define WGL_PBUFFER_HEIGHT_ARB 0x2035
#define WGL_PBUFFER_LOST_ARB 0x2036
...
...
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