diff options
| author | 2017-01-29 21:23:35 -0800 | |
|---|---|---|
| committer | 2017-02-09 00:04:24 -0800 | |
| commit | af65e1c0a058bf479f3eec9233f2f60153597bb6 (patch) | |
| tree | 81ce1ae0741d7b412c0ab8e3c37a7a902ec21395 /src | |
| parent | VideoCore: Split regs.h inclusions (diff) | |
| download | yuzu-af65e1c0a058bf479f3eec9233f2f60153597bb6.tar.gz yuzu-af65e1c0a058bf479f3eec9233f2f60153597bb6.tar.xz yuzu-af65e1c0a058bf479f3eec9233f2f60153597bb6.zip | |
OpenGL: Remove unused duplicate of IsPassThroughTevStage
This copy was left behind when the shader generation code was moved to a
separate file.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index ca818a672..4b1948a71 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -28,18 +28,6 @@ MICROPROFILE_DEFINE(OpenGL_Drawing, "OpenGL", "Drawing", MP_RGB(128, 128, 192)); | |||
| 28 | MICROPROFILE_DEFINE(OpenGL_Blits, "OpenGL", "Blits", MP_RGB(100, 100, 255)); | 28 | MICROPROFILE_DEFINE(OpenGL_Blits, "OpenGL", "Blits", MP_RGB(100, 100, 255)); |
| 29 | MICROPROFILE_DEFINE(OpenGL_CacheManagement, "OpenGL", "Cache Mgmt", MP_RGB(100, 255, 100)); | 29 | MICROPROFILE_DEFINE(OpenGL_CacheManagement, "OpenGL", "Cache Mgmt", MP_RGB(100, 255, 100)); |
| 30 | 30 | ||
| 31 | static bool IsPassThroughTevStage(const Pica::TexturingRegs::TevStageConfig& stage) { | ||
| 32 | using TevStageConfig = Pica::TexturingRegs::TevStageConfig; | ||
| 33 | |||
| 34 | return (stage.color_op == TevStageConfig::Operation::Replace && | ||
| 35 | stage.alpha_op == TevStageConfig::Operation::Replace && | ||
| 36 | stage.color_source1 == TevStageConfig::Source::Previous && | ||
| 37 | stage.alpha_source1 == TevStageConfig::Source::Previous && | ||
| 38 | stage.color_modifier1 == TevStageConfig::ColorModifier::SourceColor && | ||
| 39 | stage.alpha_modifier1 == TevStageConfig::AlphaModifier::SourceAlpha && | ||
| 40 | stage.GetColorMultiplier() == 1 && stage.GetAlphaMultiplier() == 1); | ||
| 41 | } | ||
| 42 | |||
| 43 | RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) { | 31 | RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) { |
| 44 | // Create sampler objects | 32 | // Create sampler objects |
| 45 | for (size_t i = 0; i < texture_samplers.size(); ++i) { | 33 | for (size_t i = 0; i < texture_samplers.size(); ++i) { |