Treat GL_CLAMP_TO_EDGE the same as GL_CLAMP

This commit is contained in:
Luke Benstead 2022-12-09 20:17:46 +00:00
parent ac86504549
commit 8fff6ee1aa

View File

@ -1593,6 +1593,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) {
break;
case GL_TEXTURE_WRAP_S:
switch(param) {
case GL_CLAMP_TO_EDGE:
case GL_CLAMP:
active->uv_clamp |= CLAMP_U;
break;
@ -1606,6 +1607,7 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) {
case GL_TEXTURE_WRAP_T:
switch(param) {
case GL_CLAMP_TO_EDGE:
case GL_CLAMP:
active->uv_clamp |= CLAMP_V;
break;