Unplumbing program_cntl and simplifying shader loading.

This commit is contained in:
Ben Vanik
2015-11-24 20:24:35 -08:00
parent 6a546ebe4d
commit 89172da4b7
8 changed files with 38 additions and 64 deletions

View File

@@ -477,9 +477,9 @@ TraceViewer::ShaderDisplayType TraceViewer::DrawShaderTypeUI() {
void TraceViewer::DrawShaderUI(Shader* shader, ShaderDisplayType display_type) {
// Must be prepared for advanced display modes.
if (display_type != ShaderDisplayType::kUcode) {
if (!shader->has_prepared()) {
if (!shader->is_valid()) {
ImGui::TextColored(kColorError,
"ERROR: shader not prepared (not used this frame?)");
"ERROR: shader error during parsing/translation");
return;
}
}