1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: Fix compilation
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1090222
Last-Update: 2025-07-05
--- forge-1.0.1.orig/src/backend/opengl/err_opengl.cpp
+++ forge-1.0.1/src/backend/opengl/err_opengl.cpp
@@ -24,7 +24,7 @@ void commonErrorCheck(const char *pMsg,
if (x != GL_NO_ERROR) {
std::stringstream ss;
ss << "GL Error at: "<< pFile << ":"<<pLine
- <<" Message: "<<pMsg<<" Error Code: "<< x << std::endl;
+ <<" Message: "<<pMsg<<" Error Code: "<< static_cast<unsigned int>(x) << std::endl;
FG_ERROR(ss.str().c_str(), FG_ERR_GL_ERROR);
}
}
--- forge-1.0.1.orig/src/backend/opengl/window_impl.cpp
+++ forge-1.0.1/src/backend/opengl/window_impl.cpp
@@ -132,7 +132,7 @@ window_impl::window_impl(int pWidth, int
MakeContextCurrent(this);
glbinding::Binding::useCurrentContext();
- glbinding::Binding::initialize(false); // lazy function pointer evaluation
+ glbinding::Binding::initialize(glfwGetProcAddress, false); // lazy function pointer evaluation
mCxt = mWindow->getGLContextHandle();
mDsp = mWindow->getDisplayHandle();
|