commit 0d8a80c42aa5fdc87e6ef98f128e86f4164697fc parent 87030f00ae46cfe479d1908c6355735ff89f9f4a Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Nov 13 22:45:17 +0200 MSVC warnings Diffstat:
renderer.cc | | | 19 | +++++++------------ |
diff --git a/renderer.cc b/renderer.cc @@ -57,11 +57,10 @@ static GLenum bufferusage_to_glenum( BufferUsage usage ) { case BUFFERUSAGE_STATIC: return GL_STATIC_DRAW; case BUFFERUSAGE_DYNAMIC: return GL_DYNAMIC_DRAW; case BUFFERUSAGE_STREAM: return GL_STREAM_DRAW; - - default: - FATAL( "unsupported BufferUsage: %d", usage ); - return 0; } + + FATAL( "unsupported BufferUsage: %d", usage ); + return 0; } static GLenum textureformat_to_glenum( TextureFormat format ) { @@ -70,12 +69,9 @@ static GLenum textureformat_to_glenum( TextureFormat format ) { case TEXFMT_RGB_FLOAT: return GL_RGB32F; case TEXFMT_R_FLOAT: return GL_R32F; case TEXFMT_R_U8: return GL_R8; - - default: - FATAL( "unsupported TextureFormat: %d", format ); - break; } + FATAL( "unsupported TextureFormat: %d", format ); return 0; } @@ -395,11 +391,10 @@ static GLenum primitivetype_to_glenum( PrimitiveType primitive_type ) { case PRIMITIVETYPE_TRIANGLES: return GL_TRIANGLES; case PRIMITIVETYPE_POINTS: return GL_POINTS; case PRIMITIVETYPE_LINES: return GL_LINES; - - default: - FATAL( "unsupported PrimitiveType: %d", primitive_type ); - return 0; } + + FATAL( "unsupported PrimitiveType: %d", primitive_type ); + return 0; } void renderer_draw_mesh( const Mesh & mesh, RenderState state ) {