Have Draw and DrawIndexed share command and struct. Will make the next change easier.

This commit is contained in:
Henrik Rydgård committed 2023-05-10 10:40:33 +02:00
1 parent d5e0299b0b
commit c7caefe6d8
4 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -574,7 +574,7 @@ void PreprocessSkyplane(GLRStep* step) {
for (auto& command : step->commands) {
if (command.cmd == GLRRenderCommand::DEPTH) {
depthEnabled = command.depth.enabled;
} else if ((command.cmd == GLRRenderCommand::DRAW_INDEXED) && !depthEnabled) {
} else if ((command.cmd == GLRRenderCommand::DRAW && command.draw.indices != nullptr) && !depthEnabled) {
command.draw.count = 0;
}
}