Skip to content

Commit

Permalink
fix freeze
Browse files Browse the repository at this point in the history
Some computers have rendering issues in menus, console and connect/map loading screen.
It is unplayable.

Maybe it is because of OpenGL 4.0 and Intel HD Graphics.
  • Loading branch information
raphael123333 committed Jun 26, 2023
1 parent 63c3371 commit 7272cae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hook.cpp
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 7272cae

Please sign in to comment.