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
6d1a76fb
Commit
6d1a76fb
authored
Jun 07, 2009
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix (and simplify) the ATI case in IWineD3DImpl_FillGLCaps.
parent
7856ac3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
directx.c
dlls/wined3d/directx.c
+6
-12
No files found.
dlls/wined3d/directx.c
View file @
6d1a76fb
...
...
@@ -615,21 +615,15 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
major
=
minor
=
0
;
gl_string_cursor
=
strchr
(
gl_string
,
'-'
);
if
(
gl_string_cursor
)
{
int
error
=
0
;
gl_string_cursor
++
;
/* Check if version number is of the form x.y.z */
if
(
*
gl_string_cursor
>
'9'
&&
*
gl_string_cursor
<
'0'
)
error
=
1
;
if
(
!
error
&&
*
(
gl_string_cursor
+
2
)
>
'9'
&&
*
(
gl_string_cursor
+
2
)
<
'0'
)
error
=
1
;
if
(
!
error
&&
*
(
gl_string_cursor
+
4
)
>
'9'
&&
*
(
gl_string_cursor
+
4
)
<
'0'
)
error
=
1
;
if
(
!
error
&&
*
(
gl_string_cursor
+
1
)
!=
'.'
&&
*
(
gl_string_cursor
+
3
)
!=
'.'
)
error
=
1
;
/* Mark version number as malformed */
if
(
error
)
if
(
*
gl_string_cursor
<
'0'
||
*
gl_string_cursor
>
'9'
||
*
(
gl_string_cursor
+
1
)
!=
'.'
||
*
(
gl_string_cursor
+
2
)
<
'0'
||
*
(
gl_string_cursor
+
2
)
>
'9'
||
*
(
gl_string_cursor
+
3
)
!=
'.'
||
*
(
gl_string_cursor
+
4
)
<
'0'
||
*
(
gl_string_cursor
+
4
)
>
'9'
)
/* Mark version number as malformed */
gl_string_cursor
=
0
;
}
...
...
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