Skip to content

Commit 17f0894

Browse files
committed
Rolled back 3c8ea26 as it break ShovelKnight (for #512)
1 parent e6bb082 commit 17f0894

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gl/preproc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ char* preproc(const char* code, int keepcomments, int gl_es, extensions_t* exts,
520520
if(tok.type==TK_SPACE)
521521
status = 310;
522522
else if(tok.type==TK_TEXT) {
523-
int v = -1;
523+
int v = 1;
524524
if(gl_es && (strcmp(tok.str, "GL_ES")==0))
525525
v = 1;
526526
else if(kh_get(alldefine, alldefines, tok.str)!=kh_end(alldefines)) {
@@ -541,7 +541,7 @@ char* preproc(const char* code, int keepcomments, int gl_es, extensions_t* exts,
541541
if(tok.type==TK_SPACE)
542542
status = 320;
543543
else if(tok.type==TK_TEXT) {
544-
int v = -1;
544+
int v = 0;
545545
if(gl_es && strcmp(tok.str, "GL_ES")==0)
546546
v = 0;
547547
else if(kh_get(alldefine, alldefines, tok.str)!=kh_end(alldefines)) {

0 commit comments

Comments
 (0)