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
a39afdd6
Commit
a39afdd6
authored
Nov 11, 2003
by
Lionel Ulmer
Committed by
Alexandre Julliard
Nov 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of GL version string in X.Y cases.
parent
546839f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+8
-2
No files found.
dlls/ddraw/d3ddevice/mesa.c
View file @
a39afdd6
...
...
@@ -4091,7 +4091,7 @@ d3ddevice_init_at_startup(void *gl_handle)
const
char
*
glVersion
;
const
char
*
glXExtensions
=
NULL
;
const
void
*
(
*
pglXGetProcAddressARB
)(
const
GLubyte
*
)
=
NULL
;
int
major
,
minor
,
patch
;
int
major
,
minor
,
patch
,
num_parsed
;
TRACE
(
"Initializing GL...
\n
"
);
...
...
@@ -4136,7 +4136,13 @@ d3ddevice_init_at_startup(void *gl_handle)
}
/* Parse the GL version string */
sscanf
(
glVersion
,
"%d.%d.%d"
,
&
major
,
&
minor
,
&
patch
);
num_parsed
=
sscanf
(
glVersion
,
"%d.%d.%d"
,
&
major
,
&
minor
,
&
patch
);
if
(
num_parsed
==
1
)
{
minor
=
0
;
patch
=
0
;
}
else
if
(
num_parsed
==
2
)
{
patch
=
0
;
}
TRACE
(
"GL version %d.%d.%d
\n
"
,
major
,
minor
,
patch
);
/* And starts to fill the extension context properly */
...
...
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