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
d298b68f
Commit
d298b68f
authored
Oct 03, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Use the specified format for GL Bitmaps.
parent
fa6598a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
opengl.c
dlls/winex11.drv/opengl.c
+9
-11
No files found.
dlls/winex11.drv/opengl.c
View file @
d298b68f
...
@@ -984,21 +984,19 @@ Drawable create_glxpixmap(Display *display, XVisualInfo *vis, Pixmap parent)
...
@@ -984,21 +984,19 @@ Drawable create_glxpixmap(Display *display, XVisualInfo *vis, Pixmap parent)
}
}
static
XID
create_bitmap_glxpixmap
(
X11DRV_PDEVICE
*
physDev
)
static
XID
create_bitmap_glxpixmap
(
X11DRV_PDEVICE
*
physDev
,
WineGLPixelFormat
*
fmt
)
{
{
GLXPixmap
ret
;
GLXPixmap
ret
=
0
;
XVisualInfo
*
vis
;
XVisualInfo
*
vis
;
XVisualInfo
template
;
int
num
;
wine_tsx11_lock
();
wine_tsx11_lock
();
/* Retrieve the visualid from our main visual which is the only visual we can use */
vis
=
pglXGetVisualFromFBConfig
(
gdi_display
,
fmt
->
fbconfig
);
template
.
visualid
=
XVisualIDFromVisual
(
visual
);
if
(
vis
)
{
vis
=
XGetVisualInfo
(
gdi_display
,
VisualIDMask
,
&
template
,
&
num
);
if
(
vis
->
depth
==
physDev
->
bitmap
->
pixmap_depth
)
ret
=
pglXCreateGLXPixmap
(
gdi_display
,
vis
,
physDev
->
bitmap
->
pixmap
);
ret
=
pglXCreateGLXPixmap
(
gdi_display
,
vis
,
physDev
->
bitmap
->
pixmap
);
XFree
(
vis
);
XFree
(
vis
);
}
wine_tsx11_unlock
();
wine_tsx11_unlock
();
TRACE
(
"return %lx
\n
"
,
ret
);
TRACE
(
"return %lx
\n
"
,
ret
);
return
ret
;
return
ret
;
...
@@ -1466,7 +1464,7 @@ BOOL X11DRV_SetPixelFormat(X11DRV_PDEVICE *physDev,
...
@@ -1466,7 +1464,7 @@ BOOL X11DRV_SetPixelFormat(X11DRV_PDEVICE *physDev,
return
FALSE
;
return
FALSE
;
}
}
physDev
->
bitmap
->
glxpixmap
=
create_bitmap_glxpixmap
(
physDev
);
physDev
->
bitmap
->
glxpixmap
=
create_bitmap_glxpixmap
(
physDev
,
fmt
);
if
(
!
physDev
->
bitmap
->
glxpixmap
)
{
if
(
!
physDev
->
bitmap
->
glxpixmap
)
{
WARN
(
"Couldn't create glxpixmap for pixel format %d
\n
"
,
iPixelFormat
);
WARN
(
"Couldn't create glxpixmap for pixel format %d
\n
"
,
iPixelFormat
);
return
FALSE
;
return
FALSE
;
...
...
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