From 86644aee3cd78ac484434e1c813e77d73de26ad3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 20 Mar 2015 02:51:16 +0100 Subject: [PATCH] (gl_common.c) Cleanup --- gfx/gl_common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gfx/gl_common.c b/gfx/gl_common.c index 8857d4e041..8a0ae3c111 100644 --- a/gfx/gl_common.c +++ b/gfx/gl_common.c @@ -24,15 +24,12 @@ void gl_load_texture_data(GLuint id, const void *frame, unsigned base_size) { GLint mag_filter, min_filter; - GLenum wrap; bool want_mipmap = false; bool rgb32 = (base_size == (sizeof(uint32_t))); driver_t *driver = driver_get_ptr(); + GLenum wrap = gl_wrap_type_to_enum(wrap_type); glBindTexture(GL_TEXTURE_2D, id); - - wrap = gl_wrap_type_to_enum(wrap_type); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap);