--disable_textures flag.

This commit is contained in:
Ben Vanik
2015-01-02 02:50:12 -08:00
parent 53906ee195
commit 420fd11771
3 changed files with 8 additions and 0 deletions

View File

@@ -2163,6 +2163,10 @@ bool CommandProcessor::PopulateSampler(DrawCommand* draw_command,
// If we fail, we still draw but with an invalid texture.
draw_command->state_data->texture_samplers[desc.fetch_slot] = 0;
if (FLAGS_disable_textures) {
return true;
}
// ?
if (!fetch.type) {
return true;