opengl32: Check the minor version when determining extension support.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e75f2282ba
commit
b4eb8e846b
@ -827,7 +827,7 @@ static BOOL is_extension_supported(const char* extension)
|
|||||||
|
|
||||||
/* Compare the major/minor version numbers of the native OpenGL library and what is required by the function.
|
/* Compare the major/minor version numbers of the native OpenGL library and what is required by the function.
|
||||||
* The gl_version string is guaranteed to have at least a major/minor and sometimes it has a release number as well. */
|
* The gl_version string is guaranteed to have at least a major/minor and sometimes it has a release number as well. */
|
||||||
if( (gl_version[0] >= version[0]) || ((gl_version[0] == version[0]) && (gl_version[2] >= version[2])) ) {
|
if( (gl_version[0] > version[0]) || ((gl_version[0] == version[0]) && (gl_version[2] >= version[2])) ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
WARN("The function requires OpenGL version '%c.%c' while your drivers only provide '%c.%c'\n", version[0], version[2], gl_version[0], gl_version[2]);
|
WARN("The function requires OpenGL version '%c.%c' while your drivers only provide '%c.%c'\n", version[0], version[2], gl_version[0], gl_version[2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user