Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed setting the texture unit, still doesn't work.

  • Loading branch information
slouken committed Feb 9, 2011
1 parent fcdda06 commit e6897a7d13ba36589664e19a9f8f3ba600965b7d
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/render/opengl/SDL_render_gl.c
  2. +1 −1 src/render/opengl/SDL_shaders_gl.c
@@ -282,7 +282,7 @@ GL_CreateRenderer(SDL_Window * window, Uint32 flags)
}

/* Check for shader support */
//data->shaders = GL_CreateShaderContext();
data->shaders = GL_CreateShaderContext();

#if 0
/* We support YV12 textures using 3 textures and a shader */
@@ -183,7 +183,7 @@ CompileShaderProgram(GL_ShaderContext *ctx, int index, GL_ShaderData *data)
SDL_snprintf(tex_name, SDL_arraysize(tex_name), "tex%d", i);
location = ctx->glGetUniformLocationARB(data->program, tex_name);
if (location >= 0) {
ctx->glUniform1iARB(location, 1);
ctx->glUniform1iARB(location, i);
}
}
ctx->glUseProgramObjectARB(0);

0 comments on commit e6897a7

Please sign in to comment.