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:
parent
8d69535933
commit
bdaee4e99f
1 changed files with 0 additions and 1 deletions
|
@ -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…
Reference in a new issue