medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e16ded4b1b4c5641c3c09e179b099705bb3d7766
parent 679c8f028ec38c1a3e684bfa67c91fcee9138837
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Nov  4 19:35:04 +0200

RENDERER_MAX_TEXTURES is a bit shorter

Diffstat:
renderer.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/renderer.cc b/renderer.cc @@ -339,7 +339,7 @@ void renderer_draw_mesh( const Mesh & mesh, RenderState state ) { glBindBufferBase( GL_UNIFORM_BUFFER, checked_cast< GLuint >( i ), state.ubs[ i ] ); } - for( size_t i = 0; i < ARRAY_COUNT( state.textures ); i++ ) { + for( size_t i = 0; i < RENDERER_MAX_TEXTURES; i++ ) { glActiveTexture( GL_TEXTURE0 + i ); glBindTexture( GL_TEXTURE_2D, checked_cast< GLuint >( state.textures[ i ] ) ); }