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
b8840726
Commit
b8840726
authored
Jan 19, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Better version string parsing for VENDOR_NVIDIA in
IWineD3DImpl_FillGLCaps.
parent
a9f96938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
directx.c
dlls/wined3d/directx.c
+26
-18
No files found.
dlls/wined3d/directx.c
View file @
b8840726
...
...
@@ -268,30 +268,38 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info, Display* display)
switch
(
gl_info
->
gl_vendor
)
{
case
VENDOR_NVIDIA
:
gl_string_cursor
=
strstr
(
gl_string
,
"NVIDIA"
);
if
(
!
gl_string_cursor
)
{
ERR_
(
d3d_caps
)(
"Invalid nVidia version string: %s
\n
"
,
debugstr_a
(
gl_string
));
break
;
}
gl_string_cursor
=
strstr
(
gl_string_cursor
,
" "
);
while
(
*
gl_string_cursor
&&
' '
==
*
gl_string_cursor
)
++
gl_string_cursor
;
if
(
*
gl_string_cursor
)
{
char
tmp
[
16
]
;
int
cursor
=
0
;
if
(
!
gl_string_cursor
)
{
ERR_
(
d3d_caps
)(
"Invalid nVidia version string: %s
\n
"
,
debugstr_a
(
gl_string
));
break
;
}
while
(
*
gl_string_cursor
<=
'9'
&&
*
gl_string_cursor
>=
'0'
)
{
tmp
[
cursor
++
]
=
*
gl_string_cursor
;
++
gl_string_cursor
;
}
tmp
[
cursor
]
=
0
;
major
=
atoi
(
tmp
);
while
(
*
gl_string_cursor
==
' '
)
{
++
gl_string_cursor
;
}
if
(
*
gl_string_cursor
!=
'.'
)
WARN_
(
d3d_caps
)(
"malformed GL_VERSION (%s)
\n
"
,
debugstr_a
(
gl_string
));
if
(
!*
gl_string_cursor
)
{
ERR_
(
d3d_caps
)(
"Invalid nVidia version string: %s
\n
"
,
debugstr_a
(
gl_string
));
break
;
}
major
=
atoi
(
gl_string_cursor
);
while
(
*
gl_string_cursor
<=
'9'
&&
*
gl_string_cursor
>=
'0'
)
{
++
gl_string_cursor
;
}
cursor
=
0
;
while
(
*
gl_string_cursor
<=
'9'
&&
*
gl_string_cursor
>=
'0'
)
{
tmp
[
cursor
++
]
=
*
gl_string_cursor
;
++
gl_string_cursor
;
}
tmp
[
cursor
]
=
0
;
minor
=
atoi
(
tmp
);
if
(
*
gl_string_cursor
++
!=
'.'
)
{
ERR_
(
d3d_caps
)(
"Invalid nVidia version string: %s
\n
"
,
debugstr_a
(
gl_string
));
break
;
}
minor
=
atoi
(
gl_string_cursor
);
break
;
case
VENDOR_ATI
:
...
...
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