This is an old revision of the document!
bool IsOpenGL()
Returns true if the OpenGL renderer is being used by the client, false if software.
When used serverside, this function always returns true and emits a ProgramError.
It works by checking the following conditions:
vid_renderer
is true.gl_nogl
is false.Only if all three checks pass, the function returns true.
vid_renderer
or gl_nogl
is changed mid-game because the renderer only actually switches after restart, but the values of the cvars change immediately.