panfrost: Don't crash on GL_CLAMP
It's a legacy GL thing... we don't really need to handle it *right* now, but we shouldn't crash.. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
@@ -274,6 +274,8 @@ translate_tex_wrap(enum pipe_tex_wrap w)
|
||||
case PIPE_TEX_WRAP_REPEAT:
|
||||
return MALI_WRAP_REPEAT;
|
||||
|
||||
/* TODO: lower GL_CLAMP? */
|
||||
case PIPE_TEX_WRAP_CLAMP:
|
||||
case PIPE_TEX_WRAP_CLAMP_TO_EDGE:
|
||||
return MALI_WRAP_CLAMP_TO_EDGE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user