DarkRadiant: master d97be6e0

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 08.08.2021 19:53 master 0a88ae07
Changeset Fix test failure

It turns out some OpenGL functions do get called during unit tests, but
whatever GL renderer is available doesn't have the full capabilities of the
main graphics driver.

The call to glGenerateMipmap (which is an OpenGL 3.0 core function) is now
protected by a GLEW_VERSION_3_0 check to prevent it from causing a crash during
unit tests.
mod - libs/RGBAImage.h Diff File