Skip to content

Commit

Permalink
Merge pull request #5 from raphael123333/main
Browse files Browse the repository at this point in the history
fix freeze
  • Loading branch information
PrawyCoD1 committed Jun 26, 2023
2 parents 63c3371 + 7272cae commit dec00e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hook.cpp
Expand Up @@ -112,6 +112,7 @@ bool apply_hooks() {
__call(0x4D87F5, (int)RB_ShowImages);
__nop(0x4D87F0, 5); //cmp and jz for r_showImages->integer

/*
void __stdcall RB_BeginSurface(); // crashes?
__call(0x4D4A2C, (int)RB_BeginSurface);
__call(0x4D6886, (int)RB_BeginSurface);
Expand All @@ -133,6 +134,7 @@ bool apply_hooks() {
__call(0x511067, (int)RB_BeginSurface);
__call(0x511D85, (int)RB_BeginSurface);
__call(0x51269B, (int)RB_BeginSurface);
*/

void* ri_Hunk_AllocAlign(int size);
XUNLOCK((void*)0x4FD6AF, 6);
Expand Down
2 changes: 2 additions & 0 deletions render.cpp
Expand Up @@ -334,6 +334,7 @@ void APIENTRY qglBindTexture(GLenum target, GLuint texture) {
glBindTexture(target, texture);
}

/*
void __stdcall RB_BeginSurface() {
shader_t* shader;
__asm {
Expand All @@ -353,6 +354,7 @@ void __stdcall RB_BeginSurface() {
}
call();
}
*/

static GLfloat rot = 0.0;
static time_t rot_time = 0;
Expand Down

0 comments on commit dec00e0

Please sign in to comment.