only set changed glDepthRange values

This commit is contained in:
Konstantin Käfer
2014-08-13 17:46:15 +02:00
parent 6ed3d67b62
commit bfd1281285
8 changed files with 21 additions and 11 deletions

View File

@@ -130,6 +130,7 @@ public:
void useProgram(uint32_t program);
void lineWidth(float lineWidth);
void depthMask(bool value);
void depthRange(float near, float far);
public:
mat4 vtxMatrix;
@@ -156,6 +157,7 @@ private:
float gl_lineWidth = 0;
bool gl_depthMask = true;
std::array<uint16_t, 2> gl_viewport = {{ 0, 0 }};
std::array<float, 2> gl_depthRange = {{ 0, 1 }};
float strata = 0;
RenderPass pass = RenderPass::Opaque;
const float strata_epsilon = 1.0f / (1 << 16);