src/render/opengl/SDL_shaders_gl.c
changeset 5355 cc2215cda170
parent 5262 b530ef003506
child 5535 96594ac5fd1a
     1.1 --- a/src/render/opengl/SDL_shaders_gl.c	Sat Feb 19 21:51:03 2011 -0800
     1.2 +++ b/src/render/opengl/SDL_shaders_gl.c	Sat Feb 19 21:51:21 2011 -0800
     1.3 @@ -60,7 +60,6 @@
     1.4  
     1.5      SDL_bool GL_ARB_texture_rectangle_supported;
     1.6  
     1.7 -    GL_Shader current_shader;
     1.8      GL_ShaderData shaders[NUM_SHADERS];
     1.9  };
    1.10  
    1.11 @@ -341,18 +340,7 @@
    1.12  void
    1.13  GL_SelectShader(GL_ShaderContext *ctx, GL_Shader shader)
    1.14  {
    1.15 -    /* Nothing to do if there's no shader support */
    1.16 -    if (!ctx) {
    1.17 -        return;
    1.18 -    }
    1.19 -
    1.20 -    /* Nothing to do if there's no shader change */
    1.21 -    if (shader == ctx->current_shader) {
    1.22 -        return;
    1.23 -    }
    1.24 -
    1.25      ctx->glUseProgramObjectARB(ctx->shaders[shader].program);
    1.26 -    ctx->current_shader = shader;
    1.27  }
    1.28  
    1.29  void