mesa: Validate the layer selection of an array texture too
[mesa.git] / src / mesa / main / shaderobj.h
index 5ce85cfdeba052f89ee15c0ba328bdccd9b215ee..de1c9fcaf1e24c3038c1cb03f2589b69613c9eb2 100644 (file)
@@ -123,8 +123,8 @@ _mesa_shader_index_to_type(GLuint i)
 {
    static const GLenum enums[MESA_SHADER_TYPES] = {
       GL_VERTEX_SHADER,
-      GL_FRAGMENT_SHADER,
-      GL_GEOMETRY_SHADER ,
+      GL_GEOMETRY_SHADER,
+      GL_FRAGMENT_SHADER
    };
    if (i >= MESA_SHADER_TYPES)
       return 0;