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
a1035389c0
commit
5f9c7d3657
@ -1992,7 +1992,7 @@ gl_target_to_arbfp_string (GLenum gl_target)
|
||||
#endif
|
||||
if (gl_target == GL_TEXTURE_2D)
|
||||
return "2D";
|
||||
#ifdef ARB_texture_rectangle
|
||||
#ifdef GL_ARB_texture_rectangle
|
||||
else if (gl_target == GL_TEXTURE_RECTANGLE_ARB)
|
||||
return "RECT";
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user