mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed artifacts exposed (not really caused) by a0d18b527fb1. GL_CLAMP is deprecated in OpenGL ES. Image::Filter and Image::Wrap did not have reasonable default.
This commit is contained in:
@@ -198,7 +198,7 @@ namespace opengl
|
||||
switch(w.s)
|
||||
{
|
||||
case WRAP_CLAMP:
|
||||
gs = GL_CLAMP;
|
||||
gs = GL_CLAMP_TO_EDGE;
|
||||
break;
|
||||
case WRAP_REPEAT:
|
||||
default:
|
||||
@@ -209,7 +209,7 @@ namespace opengl
|
||||
switch(w.t)
|
||||
{
|
||||
case WRAP_CLAMP:
|
||||
gt = GL_CLAMP;
|
||||
gt = GL_CLAMP_TO_EDGE;
|
||||
break;
|
||||
case WRAP_REPEAT:
|
||||
default:
|
||||
@@ -236,7 +236,7 @@ namespace opengl
|
||||
|
||||
switch(gs)
|
||||
{
|
||||
case GL_CLAMP:
|
||||
case GL_CLAMP_TO_EDGE:
|
||||
w.s = WRAP_CLAMP;
|
||||
break;
|
||||
case GL_REPEAT:
|
||||
@@ -247,7 +247,7 @@ namespace opengl
|
||||
|
||||
switch(gt)
|
||||
{
|
||||
case GL_CLAMP:
|
||||
case GL_CLAMP_TO_EDGE:
|
||||
w.t = WRAP_CLAMP;
|
||||
break;
|
||||
case GL_REPEAT:
|
||||
|
||||
Reference in New Issue
Block a user