]> git.cworth.org Git - apitrace/blobdiff - retrace/glstate_internal.hpp
glretrace: Fix snapshots on GL 3.2 core contexts (issue #106).
[apitrace] / retrace / glstate_internal.hpp
index aab7f986c43a4390c2225b95a2bf7ff1bc526cbe..6b74b1d58e676f3f707bddd4af13bc78c4159cc8 100644 (file)
@@ -44,16 +44,28 @@ struct Context
 
     Context(void);
 
-    GLint packAlignment;
-
     void
     resetPixelPackState(void);
 
     void
     restorePixelPackState(void);
+
+private:
+    // Pack state
+    GLint pack_alignment;
+    GLint pack_image_height;
+    GLint pack_lsb_first;
+    GLint pack_row_length;
+    GLint pack_skip_images;
+    GLint pack_skip_pixels;
+    GLint pack_skip_rows;
+    GLint pack_swap_bytes;
+    GLint pixel_pack_buffer_binding;
 };
 
 
+void dumpBoolean(JSONWriter &json, GLboolean value);
+
 void dumpEnum(JSONWriter &json, GLenum pname);
 
 void dumpParameters(JSONWriter &json, Context &context);