diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index ae4ce6d00..3c48d7d5f 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -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; diff --git a/src/xenia/gpu/gl4/gl4_gpu-private.h b/src/xenia/gpu/gl4/gl4_gpu-private.h index 2b24c7f26..065e0e327 100644 --- a/src/xenia/gpu/gl4/gl4_gpu-private.h +++ b/src/xenia/gpu/gl4/gl4_gpu-private.h @@ -20,6 +20,8 @@ DECLARE_bool(thread_safe_gl); DECLARE_bool(gl_debug_output); DECLARE_bool(gl_debug_output_synchronous); +DECLARE_bool(disable_textures); + namespace xe { namespace gpu { namespace gl4 { diff --git a/src/xenia/gpu/gl4/gl4_gpu.cc b/src/xenia/gpu/gl4/gl4_gpu.cc index c27a4fb75..d9f248d0f 100644 --- a/src/xenia/gpu/gl4/gl4_gpu.cc +++ b/src/xenia/gpu/gl4/gl4_gpu.cc @@ -19,6 +19,8 @@ DEFINE_bool(gl_debug_output, false, "Dump ARB_debug_output to stderr."); DEFINE_bool(gl_debug_output_synchronous, true, "ARB_debug_output will synchronize to be thread safe."); +DEFINE_bool(disable_textures, false, "Disable textures and use colors only."); + namespace xe { namespace gpu { namespace gl4 {