fixed an ordering issue caused by previous commit
authorErwin Coumans <blender@erwincoumans.com>
Wed, 18 Jan 2006 06:46:56 +0000 (06:46 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Wed, 18 Jan 2006 06:46:56 +0000 (06:46 +0000)
source/gameengine/Ketsji/BL_Shader.cpp

index 5c173c4e6b409f106de6fba5fd8a96d288e48513..d35dc247d5d45e44ad6abcd9e0d6200f1e59a5af 100644 (file)
@@ -91,15 +91,15 @@ BL_Shader::~BL_Shader()
 bool BL_Shader::LinkProgram()
 {
 #ifdef GL_ARB_shader_objects
-       if(mError)
-               goto programError;
-
 
        int vertlen = 0, fraglen=0, proglen=0;
        int vertstatus=0, fragstatus=0, progstatus=0;
        unsigned int tmpVert=0, tmpFrag=0, tmpProg=0;
        int char_len=0;
 
+       if(mError)
+               goto programError;
+
        if(!vertProg || !fragProg){
                spit("Invalid GLSL sources");
                return false;