medfall

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

commit 571735aee63020f8cf3d8f145b5ab3a444af0ec8
parent bd88edecb440aeebd70b70f76980547d49f83df6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jan  8 22:08:22 +0200

MSVC warning

Diffstat:
renderer.cc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/renderer.cc b/renderer.cc @@ -313,7 +313,8 @@ Texture renderer_new_texture( TextureConfig config ) { glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR ); GLenum internal_format = textureformat_to_glenum( config.format ); - GLenum channels, type; + GLenum channels = GL_INVALID_ENUM; + GLenum type = GL_INVALID_ENUM; switch( config.format ) { case TEXFMT_RGBA_FLOAT: