Skip to content

Commit 3993dd9

Browse files
authored
Merge pull request #15 from mvoolt/fix-glext-crash
NOP out GL_EXTENSIONS prints to prevent crashing at launch
2 parents 5e38a83 + 2c3010e commit 3993dd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fixes.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ bool fix_bugs() {
2222
__nop(0x40BC18, 5); //fixes spam with "MAX_PACKET_USERCMDS" if you have 1000 fps
2323
__nop(0x43BA04, 5); //Removing second "Need Paks:" because it's useless one is enough
2424

25+
// do not print list of GL extensions to avoid crashing
26+
__nop(0x4B2EC0, 6); // GL_EXTENSIONS print in GlxInfo_f
27+
__nop(0x4B2ED4, 6); // WGL_EXTENSIONS print in GlxInfo_f
28+
__nop(0x508D18, 6); // another GL_EXTENSIONS print
29+
2530
return ret;
2631
}

0 commit comments

Comments
 (0)