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
9859365d
Commit
9859365d
authored
May 26, 2016
by
Miklós Máté
Committed by
Alexandre Julliard
May 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use GLX 1.3 for pixmaps.
Signed-off-by:
Miklós Máté
<
mtmkls@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c000733e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
opengl.c
dlls/winex11.drv/opengl.c
+9
-9
No files found.
dlls/winex11.drv/opengl.c
View file @
9859365d
...
...
@@ -373,8 +373,6 @@ static void (*pglXDestroyContext)( Display *dpy, GLXContext ctx );
static
Bool
(
*
pglXMakeCurrent
)(
Display
*
dpy
,
GLXDrawable
drawable
,
GLXContext
ctx
);
static
void
(
*
pglXCopyContext
)(
Display
*
dpy
,
GLXContext
src
,
GLXContext
dst
,
unsigned
long
mask
);
static
void
(
*
pglXSwapBuffers
)(
Display
*
dpy
,
GLXDrawable
drawable
);
static
GLXPixmap
(
*
pglXCreateGLXPixmap
)(
Display
*
dpy
,
XVisualInfo
*
visual
,
Pixmap
pixmap
);
static
void
(
*
pglXDestroyGLXPixmap
)(
Display
*
dpy
,
GLXPixmap
pixmap
);
static
Bool
(
*
pglXQueryExtension
)(
Display
*
dpy
,
int
*
errorb
,
int
*
event
);
static
Bool
(
*
pglXQueryVersion
)(
Display
*
dpy
,
int
*
maj
,
int
*
min
);
static
Bool
(
*
pglXIsDirect
)(
Display
*
dpy
,
GLXContext
ctx
);
...
...
@@ -397,6 +395,8 @@ static void (*pglXDestroyPbuffer)( Display *dpy, GLXPbuffer pbuf );
static
void
(
*
pglXQueryDrawable
)(
Display
*
dpy
,
GLXDrawable
draw
,
int
attribute
,
unsigned
int
*
value
);
static
GLXContext
(
*
pglXCreateNewContext
)(
Display
*
dpy
,
GLXFBConfig
config
,
int
renderType
,
GLXContext
shareList
,
Bool
direct
);
static
Bool
(
*
pglXMakeContextCurrent
)(
Display
*
dpy
,
GLXDrawable
draw
,
GLXDrawable
read
,
GLXContext
ctx
);
static
GLXPixmap
(
*
pglXCreatePixmap
)(
Display
*
dpy
,
GLXFBConfig
config
,
Pixmap
pixmap
,
const
int
*
attrib_list
);
static
void
(
*
pglXDestroyPixmap
)(
Display
*
dpy
,
GLXPixmap
pixmap
);
/* GLX Extensions */
static
GLXContext
(
*
pglXCreateContextAttribsARB
)(
Display
*
dpy
,
GLXFBConfig
config
,
GLXContext
share_context
,
Bool
direct
,
const
int
*
attrib_list
);
...
...
@@ -624,11 +624,9 @@ static BOOL WINAPI init_opengl( INIT_ONCE *once, void *param, void **context )
LOAD_FUNCPTR
(
glXChooseVisual
);
LOAD_FUNCPTR
(
glXCopyContext
);
LOAD_FUNCPTR
(
glXCreateContext
);
LOAD_FUNCPTR
(
glXCreateGLXPixmap
);
LOAD_FUNCPTR
(
glXGetCurrentContext
);
LOAD_FUNCPTR
(
glXGetCurrentDrawable
);
LOAD_FUNCPTR
(
glXDestroyContext
);
LOAD_FUNCPTR
(
glXDestroyGLXPixmap
);
LOAD_FUNCPTR
(
glXGetConfig
);
LOAD_FUNCPTR
(
glXIsDirect
);
LOAD_FUNCPTR
(
glXMakeCurrent
);
...
...
@@ -647,6 +645,8 @@ static BOOL WINAPI init_opengl( INIT_ONCE *once, void *param, void **context )
LOAD_FUNCPTR
(
glXDestroyPbuffer
);
LOAD_FUNCPTR
(
glXMakeContextCurrent
);
LOAD_FUNCPTR
(
glXGetFBConfigs
);
LOAD_FUNCPTR
(
glXCreatePixmap
);
LOAD_FUNCPTR
(
glXDestroyPixmap
);
#undef LOAD_FUNCPTR
/* It doesn't matter if these fail. They'll only be used if the driver reports
...
...
@@ -1314,7 +1314,7 @@ static void free_gl_drawable( struct gl_drawable *gl )
XFreeColormap
(
gdi_display
,
gl
->
colormap
);
break
;
case
DC_GL_PIXMAP_WIN
:
pglXDestroy
GLX
Pixmap
(
gdi_display
,
gl
->
drawable
);
pglXDestroyPixmap
(
gdi_display
,
gl
->
drawable
);
XFreePixmap
(
gdi_display
,
gl
->
pixmap
);
break
;
default:
...
...
@@ -1387,7 +1387,7 @@ static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
gl
->
visual
->
depth
);
if
(
gl
->
pixmap
)
{
gl
->
drawable
=
pglXCreate
GLXPixmap
(
gdi_display
,
gl
->
visual
,
gl
->
pixmap
);
gl
->
drawable
=
pglXCreate
Pixmap
(
gdi_display
,
gl
->
format
->
fbconfig
,
gl
->
pixmap
,
NULL
);
if
(
!
gl
->
drawable
)
XFreePixmap
(
gdi_display
,
gl
->
pixmap
);
}
}
...
...
@@ -1522,7 +1522,7 @@ void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_r
if
(
!
mask
)
break
;
pix
=
XCreatePixmap
(
gdi_display
,
root_window
,
changes
.
width
,
changes
.
height
,
gl
->
visual
->
depth
);
if
(
!
pix
)
goto
done
;
glxp
=
pglXCreate
GLXPixmap
(
gdi_display
,
gl
->
visual
,
pix
);
glxp
=
pglXCreate
Pixmap
(
gdi_display
,
gl
->
format
->
fbconfig
,
pix
,
NULL
);
if
(
!
glxp
)
{
XFreePixmap
(
gdi_display
,
pix
);
...
...
@@ -1532,7 +1532,7 @@ void sync_gl_drawable( HWND hwnd, const RECT *visible_rect, const RECT *client_r
XFlush
(
gdi_display
);
XFreePixmap
(
gdi_display
,
gl
->
pixmap
);
pglXDestroy
GLX
Pixmap
(
gdi_display
,
gl
->
drawable
);
pglXDestroyPixmap
(
gdi_display
,
gl
->
drawable
);
TRACE
(
"Recreated GL drawable %lx to replace %lx
\n
"
,
glxp
,
gl
->
drawable
);
gl
->
pixmap
=
pix
;
...
...
@@ -1571,7 +1571,7 @@ void set_gl_drawable_parent( HWND hwnd, HWND parent )
break
;
case
DC_GL_PIXMAP_WIN
:
if
(
parent
!=
GetDesktopWindow
())
goto
done
;
pglXDestroy
GLX
Pixmap
(
gdi_display
,
gl
->
drawable
);
pglXDestroyPixmap
(
gdi_display
,
gl
->
drawable
);
XFreePixmap
(
gdi_display
,
gl
->
pixmap
);
break
;
default:
...
...
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