- moved GLEXT API out of RenderContext struct.
This commit is contained in:
parent
26943fe3fd
commit
2885056f46
35 changed files with 384 additions and 353 deletions
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
|
||||
#include "gl/system/gl_system.h"
|
||||
#include "gl/system/gl_interface.h"
|
||||
#include "gl/system/gl_cvars.h"
|
||||
#include "gl/data/gl_data.h"
|
||||
#include "gl/renderer/gl_colormap.h"
|
||||
|
|
@ -339,12 +340,12 @@ void gl_SetColor(int light, int rellight, const FColormap * cm, float alpha, Pal
|
|||
|
||||
if (gl_fixedcolormap)
|
||||
{
|
||||
gl.VertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
||||
glVertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
||||
}
|
||||
else
|
||||
{
|
||||
float lightlevel = gl_CalcLightLevel(light, rellight, weapon) / 255.0f;
|
||||
gl.VertexAttrib1f(VATTR_LIGHTLEVEL, lightlevel);
|
||||
glVertexAttrib1f(VATTR_LIGHTLEVEL, lightlevel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -611,7 +612,7 @@ void gl_SetFog(int lightlevel, int rellight, const FColormap *cmap, bool isaddit
|
|||
|
||||
// Korshun: fullbright fog like in software renderer.
|
||||
if (glset.brightfog && fogdensity != 0 && fogcolor != 0)
|
||||
gl.VertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
||||
glVertexAttrib1f(VATTR_LIGHTLEVEL, 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue