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
remotes/origin/Plasma/5.0
Luboš Luňák 19 years ago
parent 8d69535933
commit bdaee4e99f
  1. 1
      scene_opengl.cpp

@ -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

Loading…
Cancel
Save