X11OpenGLWindow: create stencil buffer for shadows in OpenGL2 mode (OpenGL3 uses shadow maps)
Add 'createCollisionObjectGraphicsObject' API for CommonPhysicsSetup Add 'pthread' dependency as workaround for NVIDIA graphics driver issue (see //See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642 )
This commit is contained in:
@@ -144,7 +144,7 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
if (majorGlVersion>=3 && wci.m_openglVersion>=3)
|
||||
{
|
||||
float retinaScale = 1.f;
|
||||
// float retinaScale = 1.f;
|
||||
|
||||
#ifndef __APPLE__
|
||||
#ifndef _WIN32
|
||||
@@ -154,14 +154,15 @@ int main(int argc, char* argv[])
|
||||
glewInit();
|
||||
#endif
|
||||
|
||||
//we ned to call glGetError twice, because of some Ubuntu/Intel/OpenGL issue
|
||||
//we need to call glGetError twice, because of some Ubuntu/Intel/OpenGL issue
|
||||
|
||||
GLuint err = glGetError();
|
||||
err = glGetError();
|
||||
btAssert(err==GL_NO_ERROR);
|
||||
glGetError();
|
||||
glGetError();
|
||||
|
||||
btAssert(glGetError()==GL_NO_ERROR);
|
||||
|
||||
|
||||
retinaScale = window->getRetinaScale();
|
||||
//retinaScale = window->getRetinaScale();
|
||||
|
||||
//primRenderer = new GLPrimitiveRenderer(sWidth,sHeight);
|
||||
//sth_stash* font = initFont(primRenderer );
|
||||
|
||||
Reference in New Issue
Block a user