Skip to content

Commit

Permalink
gfx/3d: fix program not being bound
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Dec 9, 2024
1 parent 3325e29 commit e4a0e6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libtrx/gfx/3d/3d_renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ void GFX_3D_Renderer_SetTextureFilter(
GFX_GL_Sampler_Parameteri(
&renderer->sampler, GL_TEXTURE_MIN_FILTER,
filter == GFX_TF_BILINEAR ? GL_LINEAR : GL_NEAREST);
GFX_GL_Program_Bind(&renderer->program);
GFX_GL_Program_Uniform1i(
&renderer->program, renderer->loc_smoothing_enabled,
filter == GFX_TF_BILINEAR);
Expand Down Expand Up @@ -420,6 +421,7 @@ void GFX_3D_Renderer_SetTexturingEnabled(
{
ASSERT(renderer != NULL);
GFX_3D_VertexStream_RenderPending(&renderer->vertex_stream);
GFX_GL_Program_Bind(&renderer->program);
GFX_GL_Program_Uniform1i(
&renderer->program, renderer->loc_texturing_enabled, is_enabled);
}
Expand Down

0 comments on commit e4a0e6d

Please sign in to comment.