shithub: tinygl

Download patch

ref: a9177fe09821cb151f6a9b73012ff18ef9896f38
parent: 35469bff3f50f607aa4bd39527fc0a8dbe38a756
author: MHS <gek@katherine>
date: Wed Mar 17 09:47:44 EDT 2021

Automatic commit.

--- a/include/zbuffer.h
+++ b/include/zbuffer.h
@@ -246,7 +246,7 @@
 typedef struct {
     GLint xsize,ysize;
     GLint linesize; /* line size, in bytes */
-    GLint mode;
+    //GLint mode;
     
     GLushort *zbuf;
     PIXEL *pbuf;
--- a/src/zbuffer.c
+++ b/src/zbuffer.c
@@ -21,7 +21,7 @@
 
 	zb->xsize = xsize & ~3; //The xsize will ALWAYS be a multiple of four!
 	zb->ysize = ysize;
-	zb->mode = mode;
+	//zb->mode = mode;
 	//zb->linesize = (xsize * PSZB + 3) & ~3;
 	zb->linesize = (xsize * PSZB);
 
@@ -65,10 +65,10 @@
 }
 
 void ZB_close(ZBuffer* zb) {
-#if TGL_FEATURE_8_BITS == 1
-	if (zb->mode == ZB_MODE_INDEX)
-		ZB_closeDither(zb);
-#endif
+//#if TGL_FEATURE_8_BITS == 1
+//	if (zb->mode == ZB_MODE_INDEX)
+//		ZB_closeDither(zb);
+//#endif
 
 	if (zb->frame_buffer_allocated)
 		gl_free(zb->pbuf);