Re: Can drivers lie?
- From: fungus <umailMY@xxxxxxxxxxxxxxx>
- Date: Mon, 20 Mar 2006 14:39:25 +0100
Dave Eberly wrote:
I added code to my OpenGL renderer to trap when extensions
I use do not exist. When running this on my laptop computer,
I ran into a strange problem. Queries to the driver:
vendor = ATI Technologies Inc.
renderer = FireMV 2400 PCI DDR x86/SSE2
version = 1.3 5014 WinXP Release
Okay, so it appears I am running OpenGL 1.3. My extension
handling system, though, queried the driver for all the
function pointers that are associated with OpenGL 2.0. Every
single one came back non-null, so my extension handling system
reports I can run OpenGL 2.0.
There might be some obscure little 2.0 function
which isn't supported. I think it's much better
to check if individual extensions are supported
than to try for some (fairly mythical in practice)
OpenGL version number.
I make the call
GLint maxVShaderImages;
glGetIntegerv(GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS,&maxVShaderImages);
and the value of maxVShaderImages is uninitialized, which means
the driver doesn't like the query.
Maybe it's a bug in the driver. Write a very simple
test program to check it and if it still happens
get in contact with ATI via the "feedback" page
on their web site. If you can give them a simple
test program they're usually very good at fixing
things.
Is it really the case that I have to check the OpenGL> version number and ignore the fact that the driver gives
> me non-null pointers for functions defined
in later versions of OpenGL?
No. The version number is perhaps the least useful
piece of information you can extract from a driver.
A card might be 99% OpenGL 2.0 compliant and support
all the functions I need so a perfectionist API
which tells me "sorry, we only have OpenGL 1.3"
isn't helpful.
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.
In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again. They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful. But it happens
every day. I cannot recall the last time something like
that happened in politics or religion.
- Carl Sagan, 1987 CSICOP keynote address
.
- Follow-Ups:
- Re: Can drivers lie?
- From: Dave Eberly
- Re: Can drivers lie?
- References:
- Can drivers lie?
- From: Dave Eberly
- Can drivers lie?
- Prev by Date: Re: Can drivers lie?
- Next by Date: Re: Using scroll wheel mouse with GLUT on Mac OS X
- Previous by thread: Re: Can drivers lie?
- Next by thread: Re: Can drivers lie?
- Index(es):
Relevant Pages
|
Loading