--disable_textures flag.
This commit is contained in:
parent
53906ee195
commit
420fd11771
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue