Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Why would glIsEnabled not work?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kenny Tilton  
View profile  
 More options Sep 26 2004, 11:41 pm
Newsgroups: comp.graphics.api.opengl
From: Kenny Tilton <ktil...@nyc.rr.com>
Date: Mon, 27 Sep 2004 03:41:19 GMT
Local: Sun, Sep 26 2004 11:41 pm
Subject: Why would glIsEnabled not work?
Hi, just a newby here. i am trying to debug some odd behavior with
textures but when I tried using glIsEnabled to validate things
(GL_TEXTURE_2D, in fact) it seems to be giving me bogus results: it
returns GL_FALSE (0) even when the texture rendering is working. I get
this also from glGetBooleanv using that mechanism. I also get GL_FALSE
from glIsTexture on working texture IDs. Here is a code snippet:

   glGetIntegerv( GL_TEXTURE_2D_BINDING_EXT, &activeTextureID);
   assert( glGetError() == GL_NO_ERROR );

   if( activeTextureID != glTextureID) // glTextureID is an int
   {
     GLint a;
     glEnable( GL_TEXTURE_2D );
     assert( glGetError() == GL_NO_ERROR );

     //assert( glIsEnabled( GL_TEXTURE_2D ) == GL_TRUE); // fails!
     glBindTexture( GL_TEXTURE_2D, (GLuint)glTextureID);
     assert( glGetError() == GL_NO_ERROR );
     glGetIntegerv( GL_TEXTURE_2D_BINDING_EXT, &a);
     //assert( a == glTextureID ); // nope, should be
     if ( glIsTexture( (GLuint) glTextureID) == GL_TRUE) // nope, should be

I am running Windows XP Home on a Dell Inspiron 5150 laptop with a
Mobile radeon 9000, and compiling with VC++6 and linking against the MS
OpenGL DLLs.

Is there some way I might have screwed up these simple query functions?
I will look for other ways to debug, meanwhile.

kenny

--
Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fungus  
View profile  
 More options Sep 27 2004, 12:46 am
Newsgroups: comp.graphics.api.opengl
From: fungus <openg...@SOCKSartlum.com>
Date: Mon, 27 Sep 2004 06:46:52 +0200
Local: Mon, Sep 27 2004 12:46 am
Subject: Re: Why would glIsEnabled not work?

Kenny Tilton wrote:
> Hi, just a newby here. i am trying to debug some odd behavior with
> textures but when I tried using glIsEnabled to validate things
> (GL_TEXTURE_2D, in fact) it seems to be giving me bogus results:
> Is there some way I might have screwed up these simple query functions?

DO you have an active render context?

--
<\___/>
/ O O \
\_____/  FTB.    For email, remove my socks.

Governments, like diapers, should be changed often,
and for the same reason.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kenny Tilton  
View profile  
 More options Sep 27 2004, 10:42 pm
Newsgroups: comp.graphics.api.opengl
From: Kenny Tilton <ktil...@nyc.rr.com>
Date: Tue, 28 Sep 2004 02:42:55 GMT
Local: Mon, Sep 27 2004 10:42 pm
Subject: Re: Why would glIsEnabled not work?

fungus wrote:
> Kenny Tilton wrote:

>> Hi, just a newby here. i am trying to debug some odd behavior with
>> textures but when I tried using glIsEnabled to validate things
>> (GL_TEXTURE_2D, in fact) it seems to be giving me bogus results:

>> Is there some way I might have screwed up these simple query functions?

> DO you have an active render context?

Doh! Nope. Thanks. I have this declarative hack which initializes things
at its own discretion. I have now modified that to make sure the OpenGL
stuff does not get touched unless the right render context is active.

The query functions now work as expected, and some of the odd texture
behavior has gone away. Not all, but now at least I will be able to
debug more easily.

Thx again, kenny

--
Cells? Cello? Celtik?: http://www.common-lisp.net/project/cells/
Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »