ref: 75fb5f7ad01c46e20cb7cd29b0633a8775fe42cf
parent: 10691f9c4e802193b17cfb0a1bab84e37855667c
author: MHS <gek@katherine>
date: Sat Apr 10 21:11:46 EDT 2021
Automatic commit.
--- a/config.mk
+++ b/config.mk
@@ -2,6 +2,7 @@
# C compiler
CC= clang
+#CC=gcc
#uncomment the following line for compiling the lib using tinyc.
#note that the demos will fail to build with tinyc, but you can
#-link- to tinygl built with tinyc using gcc.
@@ -10,7 +11,7 @@
#CFLAGS= -Wall -w -O3 -g -std=c99 -march=native -DNDEBUG
#extract the maximum possible performance from gcc.
-CFLAGS= -Wall -Warray-bounds=2 -O3 -std=gnu99 -mtune=native -DNDEBUG -g -fopenmp
+CFLAGS= -Wall -Warray-bounds=2 -Ofast -std=gnu99 -mtune=native -DNDEBUG -g -fopenmp
#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.
#CFLAGS= -Wall -O3 -std=gnu99 -DNDEBUG -g
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -46,7 +46,7 @@
q += 4;
}
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopLoadIdentity(GLParam* p) {
@@ -54,7 +54,7 @@
gl_M4_Id(c->matrix_stack_ptr[c->matrix_mode]);
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopMultMatrix(GLParam* p) {
@@ -75,7 +75,7 @@
gl_M4_MulLeft(c->matrix_stack_ptr[c->matrix_mode], &m);
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopPushMatrix( GLParam* p) {
@@ -93,7 +93,7 @@
gl_M4_Move(&m[0], &m[-1]);
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopPopMatrix( GLParam* p) {
@@ -108,7 +108,7 @@
#include "error_check.h"
#endif
c->matrix_stack_ptr[n]--;
- gl_matrix_update(c);
+ gl_matrix_update();
}
@@ -189,7 +189,7 @@
gl_M4_MulLeft(c->matrix_stack_ptr[c->matrix_mode], &m);
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopScale(GLParam* p) {
@@ -211,7 +211,7 @@
m[12] *= x;
m[13] *= y;
m[14] *= z;
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopTranslate(GLParam* p) {
@@ -226,7 +226,7 @@
m[11] = m[8] * x + m[9] * y + m[10] * z + m[11];
m[15] = m[12] * x + m[13] * y + m[14] * z + m[15];
- gl_matrix_update(c);
+ gl_matrix_update();
}
void glopFrustum(GLParam* p) {
@@ -268,5 +268,5 @@
gl_M4_MulLeft(c->matrix_stack_ptr[c->matrix_mode], &m);
- gl_matrix_update(c);
+ gl_matrix_update();
}