mTarget is not set at this point yet, so this gives opengl error.

Is it ok like this or does glTexEnv() require the texture to be bound?
CCMAIL: rivolaks@hot.ee


svn path=/trunk/KDE/kdebase/workspace/; revision=716886
This commit is contained in:
Luboš Luňák 2007-09-25 13:53:36 +00:00
parent 8d69535933
commit bdaee4e99f

View file

@ -765,7 +765,6 @@ void SceneOpenGL::Texture::init()
void SceneOpenGL::Texture::createTexture()
{
glGenTextures( 1, &mTexture );
glBindTexture( mTarget, mTexture );
if( hasGLVersion( 1, 4, 0 ))
{
// Lod bias makes the trilinear-filtered texture look a bit sharper