Browse Source

Reviewed rlTextureParameters()

Reviewed latest PR to also consider OpenGL 1.1 extension support (unprobable).
pull/919/head
raysan5 5 years ago
parent
commit
a1c551c6c4
1 changed files with 4 additions and 9 deletions
  1. +4
    -9
      src/rlgl.h

+ 4
- 9
src/rlgl.h View File

@ -1291,16 +1291,11 @@ void rlTextureParameters(unsigned int id, int param, int value)
{
if (value == RL_WRAP_MIRROR_CLAMP)
{
#if !defined(GRAPHICS_API_OPENGL_11)
if (!texMirrorClampSupported) {
TraceLog(LOG_WARNING, "Clamp mirror wrap mode not supported");
break;
}
#else
break;
#endif
if (texMirrorClampSupported) glTexParameteri(GL_TEXTURE_2D, param, value);
else TraceLog(LOG_WARNING, "Clamp mirror wrap mode not supported");
}
glTexParameteri(GL_TEXTURE_2D, param, value);
else glTexParameteri(GL_TEXTURE_2D, param, value);
} break;
case RL_TEXTURE_MAG_FILTER:
case RL_TEXTURE_MIN_FILTER: glTexParameteri(GL_TEXTURE_2D, param, value); break;

Loading…
Cancel
Save