Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


PiouPiou

Member Since 07 Jun 2012
Offline Last Active Jun 11 2012 10:34 AM

Posts I've Made

In Topic: Open a 3.2 OPENGL context or superior

10 June 2012 - 03:09 PM

I'm an idiot

in fact I did not put glGetError everywhere, I thought one was enough to know if opengl met an error.
I was in my wrong :-(
my problem of texture came from :

glTexImage2D (GL_TEXTURE_2D, 0, 3, taillex, tailley, 0, GL_RGB, GL_UNSIGNED_BYTE, data);

glGetError tells me an "GL_INVALID_ENUM"

must be replaced by:

glTexImage2D (GL_TEXTURE_2D, 0, GL_RGB, taillex, tailley, 0, GL_RGB, GL_UNSIGNED_BYTE, data);


I have not had time yet to test gldebugger (but I'll do it soon)

thank you very much Clb for helping me find this bug.

another question:

attriblist int [] = {WGL_CONTEXT_MAJOR_VERSION_ARB, MAJOR, WGL_CONTEXT_MINOR_VERSION_ARB, MINOR, WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB, 0, 0};

and

attriblist int [] = {WGL_CONTEXT_MAJOR_VERSION_ARB, MAJOR, WGL_CONTEXT_MINOR_VERSION_ARB, MINOR, 0};

appears to be identical?

In Topic: Open a 3.2 OPENGL context or superior

10 June 2012 - 11:09 AM

thanks Clb,

I delete all the verification that the source is as short as possible.

but it's true that I should use glGetError but even with use are
this does not solve my problem :-(

PARTNERS