]> git.cworth.org Git - apitrace/blobdiff - gltrace.py
Update some news.
[apitrace] / gltrace.py
index 8043e80544ea1d4ead9964ada0b2c13fee367299..c75ac8053487286e272ae77718e4b9e364ca89d6 100644 (file)
@@ -319,6 +319,14 @@ class GlTracer(Tracer):
         print '}'
         print
 
+        # states such as GL_UNPACK_ROW_LENGTH are not available in GLES
+        print 'static inline bool'
+        print 'can_unpack_subimage(void) {'
+        print '    tracer_context *ctx = __get_context();'
+        print '    return (ctx->profile == PROFILE_COMPAT);'
+        print '}'
+        print
+
     array_pointer_function_names = set((
         "glVertexPointer",
         "glNormalPointer",