Schnulla
06-28-2010, 04:26 PM
Hi,
I created an OpenGL 3+ context using the core profile and
removed all deprecated functions according to this nice overview (http://www.khronos.org/files/opengl-quick-reference-card.pdf).
But glEnable(GL_TEXTURE_2D) proudly presents error code:
GL_INVALID_ENUM (1280 or 0x0500)
std::string e= GetNewLineSeparatedErrorCodes();
if (e.size())
{
// Debugger does NOT stop here so no error yet
int breakhere = 1;
}
glEnable(GL_TEXTURE_2D);
e= GetNewLineSeparatedErrorCodes();
if (e.size())
{
// Debugger stops here so error in glEnable(GL_TEXTURE_2D)?
int breakhere = 1;
}
std::string GetNewLineSeparatedErrorCodes()
{
string s;
static GLenum error;
while ((error= glGetError()) != GL_NO_ERROR)
{
s+= IntToString(error) + "\n";
}
return s;
}
According to the card this texture state change is
not deprecated so it should work?
Help is really appreciated!
I created an OpenGL 3+ context using the core profile and
removed all deprecated functions according to this nice overview (http://www.khronos.org/files/opengl-quick-reference-card.pdf).
But glEnable(GL_TEXTURE_2D) proudly presents error code:
GL_INVALID_ENUM (1280 or 0x0500)
std::string e= GetNewLineSeparatedErrorCodes();
if (e.size())
{
// Debugger does NOT stop here so no error yet
int breakhere = 1;
}
glEnable(GL_TEXTURE_2D);
e= GetNewLineSeparatedErrorCodes();
if (e.size())
{
// Debugger stops here so error in glEnable(GL_TEXTURE_2D)?
int breakhere = 1;
}
std::string GetNewLineSeparatedErrorCodes()
{
string s;
static GLenum error;
while ((error= glGetError()) != GL_NO_ERROR)
{
s+= IntToString(error) + "\n";
}
return s;
}
According to the card this texture state change is
not deprecated so it should work?
Help is really appreciated!