mesa/es: require internalFormat==format in TexImage2D
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Fri, 21 Jan 2011 13:26:09 +0000 (14:26 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 24 Jan 2011 21:41:29 +0000 (16:41 -0500)
src/mesa/main/APIspec.xml

index 50446a9093a21c8f395acd507118178e60f3270f..0f82d0a38e16d70e2dfd96d8013759d3f17a90f1 100644 (file)
                <value name="GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES" category="OES_texture_cube_map"/>
        </desc>
 
-       <desc name="internalFormat" error="GL_INVALID_VALUE">
+       <desc name="internalFormat">
                <value name="GL_ALPHA"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_ALPHA"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat">
                <value name="GL_RGB"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_RGB"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat">
                <value name="GL_RGBA"/>
-               <value name="GL_BGRA_EXT"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_RGBA"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat">
                <value name="GL_LUMINANCE"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_LUMINANCE"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat">
                <value name="GL_LUMINANCE_ALPHA"/>
-               <value name="GL_DEPTH_COMPONENT" category="OES_depth_texture"/>
-               <value name="GL_DEPTH_STENCIL_OES" category="OES_packed_depth_stencil"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_LUMINANCE_ALPHA"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat" category="OES_depth_texture">
+               <value name="GL_DEPTH_COMPONENT"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_DEPTH_COMPONENT"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat" category="OES_packed_depth_stencil">
+               <value name="GL_DEPTH_STENCIL_OES"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_DEPTH_STENCIL_OES"/>
+               </desc>
+       </desc>
+
+       <desc name="internalFormat" category="EXT_texture_format_BGRA8888">
+               <value name="GL_BGRA_EXT"/>
+
+               <desc name="format" error="GL_INVALID_VALUE">
+                       <value name="GL_BGRA_EXT"/>
+               </desc>
        </desc>
 
        <desc name="border" error="GL_INVALID_VALUE">