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
icc-effect-5.14.5
Luboš Luňák 2007-09-25 13:53:36 +00:00
parent 8d69535933
commit bdaee4e99f
1 changed files with 0 additions and 1 deletions

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