shithub: tinygl

Download patch

ref: fb60ab92f7d0e5914e4c5e307f2dae6a5659e9d9
parent: 7cae5c12e578dda726a08a6e97e01b19914e9248
author: MHS <gek@katherine>
date: Fri Mar 19 11:16:39 EDT 2021

Squeezing the air out

--- a/include/zbuffer.h
+++ b/include/zbuffer.h
@@ -244,16 +244,14 @@
 
 
 typedef struct {
-    GLint xsize,ysize;
-    GLint linesize; /* line size, in bytes */
+
     //GLint mode;
     
     GLushort *zbuf;
     PIXEL *pbuf;
-    GLint frame_buffer_allocated;
-    /* depth */
-    GLint depth_test;
-    GLint depth_write;
+    PIXEL *current_texture;
+    
+
 	/* point size*/
     GLfloat pointsize;
 
@@ -260,7 +258,7 @@
 //    GLint nb_colors;
 //    unsigned char *dctable;
 //    GLint *ctable;
-    PIXEL *current_texture;
+
     /* opengl polygon stipple*/
 
 #if TGL_FEATURE_POLYGON_STIPPLE == 1
@@ -269,6 +267,12 @@
 #endif
 	GLenum blendeq, sfactor, dfactor;
     GLint enable_blend;
+    GLint xsize,ysize;
+    GLint linesize; /* line size, in bytes */
+    /* depth */
+    GLint depth_test;
+    GLint depth_write;
+    GLubyte frame_buffer_allocated;
 } ZBuffer;
 
 typedef struct {