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
f825db6d
Commit
f825db6d
authored
Sep 11, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Don't assume just one on-screen pixel format.
parent
6c5b58a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
opengl.c
dlls/winex11.drv/opengl.c
+3
-1
No files found.
dlls/winex11.drv/opengl.c
View file @
f825db6d
...
...
@@ -149,6 +149,7 @@ static int WineGLExtensionListSize;
static
WineGLPixelFormat
*
WineGLPixelFormatList
;
static
int
WineGLPixelFormatListSize
=
0
;
static
int
WineGLPixelFormatOnScreenSize
=
0
;
static
void
X11DRV_WineGL_LoadExtensions
(
void
);
static
BOOL
glxRequireVersion
(
int
requiredVersion
);
...
...
@@ -854,6 +855,7 @@ static BOOL init_formats(Display *display, int screen, Visual *visual)
WineGLPixelFormatList
[
0
].
render_type
=
get_render_type_from_fbconfig
(
display
,
fbconfig
);
WineGLPixelFormatList
[
0
].
offscreenOnly
=
FALSE
;
WineGLPixelFormatListSize
=
1
;
WineGLPixelFormatOnScreenSize
=
1
;
/* Fill the list with offscreen formats */
for
(
i
=
0
;
i
<
nCfgs
;
i
++
)
{
...
...
@@ -904,7 +906,7 @@ static WineGLPixelFormat* ConvertPixelFormatWGLtoGLX(Display *display, int iPixe
if
(
AllowOffscreen
)
*
fmt_count
=
WineGLPixelFormatListSize
;
else
*
fmt_count
=
1
;
*
fmt_count
=
WineGLPixelFormatOnScreenSize
;
TRACE
(
"Number of returned pixelformats=%d
\n
"
,
*
fmt_count
);
...
...
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