material: fix #ifdef guard around use of _TEXTURE_RECTANGLE
We were incorrectly guarding the use of GL_TEXTURE_RECTANGLE_ARB with ifdef ARB_texture_rectangle instead of ifdef GL_ARB_texture_rectangle which broke test-cogl-texture-rectangle.
This commit is contained in:
parent
26628553ed
commit
6c8b8cef9e
@ -1992,7 +1992,7 @@ gl_target_to_arbfp_string (GLenum gl_target)
|
|||||||
#endif
|
#endif
|
||||||
if (gl_target == GL_TEXTURE_2D)
|
if (gl_target == GL_TEXTURE_2D)
|
||||||
return "2D";
|
return "2D";
|
||||||
#ifdef ARB_texture_rectangle
|
#ifdef GL_ARB_texture_rectangle
|
||||||
else if (gl_target == GL_TEXTURE_RECTANGLE_ARB)
|
else if (gl_target == GL_TEXTURE_RECTANGLE_ARB)
|
||||||
return "RECT";
|
return "RECT";
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user