--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. // If we fail, we still draw but with an invalid texture.
draw_command->state_data->texture_samplers[desc.fetch_slot] = 0; draw_command->state_data->texture_samplers[desc.fetch_slot] = 0;
if (FLAGS_disable_textures) {
return true;
}
// ? // ?
if (!fetch.type) { if (!fetch.type) {
return true; return true;

View File

@ -20,6 +20,8 @@ DECLARE_bool(thread_safe_gl);
DECLARE_bool(gl_debug_output); DECLARE_bool(gl_debug_output);
DECLARE_bool(gl_debug_output_synchronous); DECLARE_bool(gl_debug_output_synchronous);
DECLARE_bool(disable_textures);
namespace xe { namespace xe {
namespace gpu { namespace gpu {
namespace gl4 { namespace gl4 {

View File

@ -19,6 +19,8 @@ DEFINE_bool(gl_debug_output, false, "Dump ARB_debug_output to stderr.");
DEFINE_bool(gl_debug_output_synchronous, true, DEFINE_bool(gl_debug_output_synchronous, true,
"ARB_debug_output will synchronize to be thread safe."); "ARB_debug_output will synchronize to be thread safe.");
DEFINE_bool(disable_textures, false, "Disable textures and use colors only.");
namespace xe { namespace xe {
namespace gpu { namespace gpu {
namespace gl4 { namespace gl4 {