Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
fd61299f
Commit
fd61299f
authored
Feb 09, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed setting the texture unit, still doesn't work.
parent
e66660c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SDL_render_gl.c
src/render/opengl/SDL_render_gl.c
+1
-1
SDL_shaders_gl.c
src/render/opengl/SDL_shaders_gl.c
+1
-1
No files found.
src/render/opengl/SDL_render_gl.c
View file @
fd61299f
...
...
@@ -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 */
...
...
src/render/opengl/SDL_shaders_gl.c
View file @
fd61299f
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment