Don't #ifdef for HAVE_OPENGLES in cellos.

This commit is contained in:
Hans-Kristian Arntzen 2012-09-10 17:55:41 +03:00
parent 7b8d412a16
commit afb4474a64

View File

@ -865,14 +865,8 @@ static void gl_init_textures(gl_t *gl)
{
glBindTexture(GL_TEXTURE_2D, gl->texture[i]);
#ifdef HAVE_OPENGLES
// Doesn't support GL_CLAMP_TO_BORDER. NOTE: This will be a serious issue with some shaders.
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
#else
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);
#endif
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gl->tex_filter);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, gl->tex_filter);