Full Version: XS brakes cause crash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Attempting to brake in XS will crash VDrift:
ERROR: OpenGL error "invalid operation" during: void GLWrapper::drawGeometry(GLuint, GLuint):src/gl3v/glwrapper.cpp:152
vdrift: src/gl3v/glwrapper.cpp:654: bool GLWrapper::checkForOpenGLErrors(const char*, const char*, int) const: Assertion `!true' failed.

Crash is only reproducible when riding this car, tried several others and it worked ok. Using latest version from, Ubuntu 11.10 x86-64, GF GTX275, NVIDIA 280.13.

In data/cars/XS/ remove the following lines to fix it:
# optional lights
position = -0.6, -2.1, 0.0
color = 0.8, 0.1, 0.1
radius = 1.5

position = 0.6, -2.1, 0.0
color = 0.8, 0.1, 0.1
radius = 1.5
I just pushed a change to the git repo to disable asserts for these types of simple OpenGL errors. I had those enabled when I was writing the renderer and forgot to turn them off. :oops:
Had the same issue in Win 7 x64. Thank for the fix. Problem isn't present in the stable release, just in the nightly.