commit 1a6367f2f0acca37fbcba6b3385c681c8f094595 parent 442d38fcea25e0a42618149938dba28397fbbb07 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Feb 11 11:33:15 +0200 Don't call glEnableVertexAttribArray when creating shaders Was throwing "[main] [WARN] GL [error - high]: Error has been generated. GL error GL_INVALID_OPERATION in EnableVertexAttribArray: (ID: 1580284243) Generic error" on some machines. Diffstat:
renderer.cc | | | 5 | ----- |
diff --git a/renderer.cc b/renderer.cc @@ -194,11 +194,6 @@ Shader renderer_new_shader( ShaderConfig config ) { glBindAttribLocation( program, ATTR_TEX_COORD0, "tex_coord0" ); glBindAttribLocation( program, ATTR_TEX_COORD1, "tex_coord1" ); glBindAttribLocation( program, ATTR_COLOUR, "colour" ); - glEnableVertexAttribArray( ATTR_POSITION ); - glEnableVertexAttribArray( ATTR_NORMAL ); - glEnableVertexAttribArray( ATTR_TEX_COORD0 ); - glEnableVertexAttribArray( ATTR_TEX_COORD1 ); - glEnableVertexAttribArray( ATTR_COLOUR ); glLinkProgram( program );