medfall

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

commit 949e56383e5730a294c7c0bee6ece5d9edc36a25
parent 4feaa7ac97e5fb9c7b153122316d90653ab65e81
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Sep  8 22:20:33 -0700

Remove GL_CULL_FACE toggling and stray projection matrix from skybox code

Diffstat:
skybox.cc | 4----
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/skybox.cc b/skybox.cc @@ -74,10 +74,7 @@ void skybox_init( Skybox * skybox ) { glBindVertexArray( 0 ); } -static const glm::mat4 P( glm::perspective( glm::radians( 120.0f ), ( float ) WIDTH / ( float ) HEIGHT, NEAR_PLANE_DEPTH, FAR_PLANE_DEPTH ) ); - void skybox_render( const Skybox * skybox, const glm::vec3 & angles ) { - glDisable( GL_CULL_FACE ); glUseProgram( skybox->shader ); glBindVertexArray( skybox->vao ); @@ -97,7 +94,6 @@ void skybox_render( const Skybox * skybox, const glm::vec3 & angles ) { glBindVertexArray( 0 ); glUseProgram( 0 ); - glEnable( GL_CULL_FACE ); } void skybox_destroy( Skybox * skybox ) {