Skip to content

Commit 8ffbfa3

Browse files
committed
steam patch
1 parent 1c71420 commit 8ffbfa3

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ IF(HAVE_SIMDSSE)
7676
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -msse2")
7777
ENDIF()
7878
# For modern gcc
79-
add_definitions(-D_USE_MATH_DEFINES -DFORCE_60FPS)
79+
add_definitions(-D_USE_MATH_DEFINES)
8080

8181
add_compile_options(-Werror=shift-negative-value)
8282
add_compile_options(-Werror=dangling-else)

lib/renderer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ SET(RENDERER_LIBS
5555
d3d12
5656
d3dcompiler
5757
ws2_32
58+
ntdll
5859
)
5960
ENDIF(MINGW)
6061

lib/renderer/src/renderer/compositor/gles3/GLES3Compositor.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const char* get_debug_source_str(GLenum source){
101101
}
102102
}
103103

104+
#ifndef _WIN32
104105
void DebugCallbackARB(GLenum source,
105106
GLenum type,
106107
GLuint id,
@@ -121,6 +122,7 @@ void DebugCallbackARB(GLenum source,
121122
std::cout << "\tmessage=" << std::string(message).substr(0, length) << std::endl;
122123
}
123124
}
125+
#endif
124126

125127
GLES3Compositor::GLES3Compositor(int32_t screen_width, int32_t screen_height, GLADloadproc loadproc)
126128
: _screen_width(screen_width)
@@ -134,12 +136,13 @@ GLES3Compositor::GLES3Compositor(int32_t screen_width, int32_t screen_height, GL
134136
{
135137
gladLoadGLES2Loader(loadproc);
136138

137-
139+
#ifndef _WIN32
138140
// pass here any value to catch only every debug message
139141
if(glDebugMessageCallback != nullptr){
140142
glEnable(GL_DEBUG_OUTPUT);
141143
glDebugMessageCallback(&DebugCallbackARB, nullptr);
142144
}
145+
#endif
143146

144147
const GLubyte * glVersion = glGetString(GL_VERSION);
145148
std::cout << "glVersion: " << glVersion <<std::endl;

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ else()
109109
IF(WIN32)
110110
SET(WIN_LIB
111111
wsock32
112+
dbghelp
112113
#-mwindows
113114
#-Wl,-subsystem,windows
114115
)

vange-rs

Submodule vange-rs updated 56 files

0 commit comments

Comments
 (0)