only set changed glDepthRange values
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user