Validate SetPushConstants is done inside subpass and compute passes

This commit is contained in:
Corentin Wallez
2017-07-20 11:01:37 -04:00
committed by Corentin Wallez
parent be985c1aab
commit c8377da79b
7 changed files with 29 additions and 8 deletions

View File

@@ -314,7 +314,7 @@ namespace opengl {
int32_t* valuesInt = reinterpret_cast<int32_t*>(valuesUInt);
float* valuesFloat = reinterpret_cast<float*>(valuesUInt);
for (auto stage : IterateStages(cmd->stage)) {
for (auto stage : IterateStages(cmd->stages)) {
const auto& pushConstants = lastPipeline->GetPushConstants(stage);
const auto& glPushConstants = lastGLPipeline->GetGLPushConstants(stage);
for (size_t i = 0; i < cmd->count; i++) {