[fixed]COpenGLDriver.cpp tweaks

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
GnarlyHotep
Posts: 10
Joined: Tue Aug 14, 2007 6:35 pm

[fixed]COpenGLDriver.cpp tweaks

Post by GnarlyHotep »

These aren't bugs, but they're (small) enhancements:

in beginScene(), f32 inv probably ought to be const f32 inv

in draw3DLine(), the 2nd glColor4ub is not needed (previous glColor4ub state persists)

in drawVertexPrimitiveList(), glFlush is not needed. A flush will happen when you flip buffers in endScene(). Note: I haven't tested with single buffer mode, so *maybe* a glFlush is desirable in endScene().
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, sounds good. Thanks.
Post Reply