Reviewed rlTextureParameters()

Reviewed latest PR to also consider OpenGL 1.1 extension support (unprobable).
This commit is contained in:
raysan5 2019-07-27 11:59:41 +02:00
parent e44eae3cd5
commit a1c551c6c4

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;