ref: ebb784911c15f0a5b7ed1d61be7052a5b476f8e7
parent: 2fcb93c4ee5083ff4d8bb8bc6ac07c18c796a83b
author: MHS <gek@katherine>
date: Sun May 2 14:57:25 EDT 2021
Automatic commit.
--- a/config.mk
+++ b/config.mk
@@ -13,7 +13,7 @@
#extract the maximum possible performance from gcc.
CFLAGS= -Wall -Ofast -std=c99 -DNDEBUG -fopenmp -mtune=native -Wno-unused-function
-CFLAGS_LIB= -Wall -Ofast -std=c89 -pedantic -DNDEBUG -fopenmp -mtune=native -Wno-unused-function
+CFLAGS_LIB= -Wall -Ofast -std=c99 -pedantic -DNDEBUG -fopenmp -mtune=native -Wno-unused-function
#CFLAGS= -Wall -Ofast -std=gnu99 -DNDEBUG -mtune=native
#uncomment the following line for compiling the lib with tinyc
#keep these flags for compiling with gcc if you are linking with tinygl compiled with tcc.
--- a/src/zbuffer.c
+++ b/src/zbuffer.c
@@ -122,7 +122,7 @@
PIXEL* q;
GLubyte* p1;
q = zb->pbuf + y * zb->xsize;
- p1 = buf + y * linesize;
+ p1 = (GLubyte*)buf + y * linesize;
#if TGL_FEATURE_NO_COPY_COLOR == 1
for (i = 0; i < zb->xsize; i++) {
if ((*(q + i) & TGL_COLOR_MASK) != TGL_NO_COPY_COLOR)
@@ -139,7 +139,7 @@
PIXEL* q;
GLubyte* p1;
q = zb->pbuf + y * zb->xsize;
- p1 = buf + y * linesize;
+ p1 = (GLubyte*)buf + y * linesize;
#if TGL_FEATURE_NO_COPY_COLOR == 1
for (i = 0; i < zb->xsize; i++) {
if ((*(q + i) & TGL_COLOR_MASK) != TGL_NO_COPY_COLOR)