gl_rasterizer: Allow rendering without fragment shader

Rendering without a fragment shader is usually used in depth-only
passes.
This commit is contained in:
ReinUsesLisp
2019-12-26 16:38:39 -03:00
parent 5619d24377
commit 5b989f189f
2 changed files with 7 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ public:
current_state.geometry_shader = 0;
}
void UseTrivialFragmentShader() {
current_state.fragment_shader = 0;
}
private:
struct PipelineState {
bool operator==(const PipelineState& rhs) const {