Skip to content

Commit dec00e0

Browse files
authored
Merge pull request #5 from raphael123333/main
fix freeze
2 parents 63c3371 + 7272cae commit dec00e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

hook.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ bool apply_hooks() {
112112
__call(0x4D87F5, (int)RB_ShowImages);
113113
__nop(0x4D87F0, 5); //cmp and jz for r_showImages->integer
114114

115+
/*
115116
void __stdcall RB_BeginSurface(); // crashes?
116117
__call(0x4D4A2C, (int)RB_BeginSurface);
117118
__call(0x4D6886, (int)RB_BeginSurface);
@@ -133,6 +134,7 @@ bool apply_hooks() {
133134
__call(0x511067, (int)RB_BeginSurface);
134135
__call(0x511D85, (int)RB_BeginSurface);
135136
__call(0x51269B, (int)RB_BeginSurface);
137+
*/
136138

137139
void* ri_Hunk_AllocAlign(int size);
138140
XUNLOCK((void*)0x4FD6AF, 6);

render.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ void APIENTRY qglBindTexture(GLenum target, GLuint texture) {
334334
glBindTexture(target, texture);
335335
}
336336

337+
/*
337338
void __stdcall RB_BeginSurface() {
338339
shader_t* shader;
339340
__asm {
@@ -353,6 +354,7 @@ void __stdcall RB_BeginSurface() {
353354
}
354355
call();
355356
}
357+
*/
356358

357359
static GLfloat rot = 0.0;
358360
static time_t rot_time = 0;

0 commit comments

Comments
 (0)