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
d053049f
Commit
d053049f
authored
Sep 26, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Oct 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Load and use GLX_MESA_copy_sub_buffer for swapping buffers on a GLXPixmap.
parent
37d835bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
opengl.c
dlls/winex11.drv/opengl.c
+24
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
d053049f
...
@@ -256,6 +256,9 @@ static BOOL (*pglXDrawableAttribATI)(Display *dpy, GLXDrawable draw, const int
...
@@ -256,6 +256,9 @@ static BOOL (*pglXDrawableAttribATI)(Display *dpy, GLXDrawable draw, const int
static
void
*
(
*
pglXAllocateMemoryNV
)(
GLsizei
size
,
GLfloat
readfreq
,
GLfloat
writefreq
,
GLfloat
priority
);
static
void
*
(
*
pglXAllocateMemoryNV
)(
GLsizei
size
,
GLfloat
readfreq
,
GLfloat
writefreq
,
GLfloat
priority
);
static
void
(
*
pglXFreeMemoryNV
)(
GLvoid
*
pointer
);
static
void
(
*
pglXFreeMemoryNV
)(
GLvoid
*
pointer
);
/* MESA GLX Extensions */
static
void
(
*
pglXCopySubBufferMESA
)(
Display
*
dpy
,
GLXDrawable
drawable
,
int
x
,
int
y
,
int
width
,
int
height
);
/* Standard OpenGL */
/* Standard OpenGL */
MAKE_FUNCPTR
(
glBindTexture
)
MAKE_FUNCPTR
(
glBindTexture
)
MAKE_FUNCPTR
(
glBitmap
)
MAKE_FUNCPTR
(
glBitmap
)
...
@@ -508,6 +511,10 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
...
@@ -508,6 +511,10 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
pglXDrawableAttribATI
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXDrawableAttribATI"
);
pglXDrawableAttribATI
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXDrawableAttribATI"
);
}
}
if
(
glxRequireExtension
(
"GLX_MESA_copy_sub_buffer"
))
{
pglXCopySubBufferMESA
=
(
void
*
)
pglXGetProcAddressARB
((
const
GLubyte
*
)
"glXCopySubBufferMESA"
);
}
X11DRV_WineGL_LoadExtensions
();
X11DRV_WineGL_LoadExtensions
();
wine_tsx11_unlock
();
wine_tsx11_unlock
();
...
@@ -3268,7 +3275,23 @@ BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev)
...
@@ -3268,7 +3275,23 @@ BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev)
wine_tsx11_lock
();
wine_tsx11_lock
();
sync_context
(
ctx
);
sync_context
(
ctx
);
pglXSwapBuffers
(
gdi_display
,
drawable
);
if
(
physDev
->
pixmap
)
{
if
(
pglXCopySubBufferMESA
)
{
int
w
=
physDev
->
dc_rect
.
right
-
physDev
->
dc_rect
.
left
;
int
h
=
physDev
->
dc_rect
.
bottom
-
physDev
->
dc_rect
.
top
;
/* (glX)SwapBuffers has an implicit glFlush effect, however
* GLX_MESA_copy_sub_buffer doesn't. Make sure GL is flushed before
* copying */
pglFlush
();
if
(
w
>
0
&&
h
>
0
)
pglXCopySubBufferMESA
(
gdi_display
,
drawable
,
0
,
0
,
w
,
h
);
}
else
pglXSwapBuffers
(
gdi_display
,
drawable
);
}
else
pglXSwapBuffers
(
gdi_display
,
drawable
);
update_drawable
(
physDev
);
update_drawable
(
physDev
);
wine_tsx11_unlock
();
wine_tsx11_unlock
();
...
...
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