1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Removes redundant enumeration.

This commit is contained in:
Thomas Harte
2019-01-13 23:07:50 -05:00
parent 7aec5be61a
commit bb03d2f2ad
4 changed files with 9 additions and 11 deletions
+2 -3
View File
@@ -22,8 +22,7 @@ void Outputs::Display::OpenGL::ScanTarget::set_uniforms(ShaderType type, Shader
void ScanTarget::enable_vertex_attributes(ShaderType type, Shader &target) {
switch(type) {
case ShaderType::InputScan:
case ShaderType::ProcessedScan:
case ShaderType::Composition:
for(int c = 0; c < 2; ++c) {
const std::string prefix = c ? "end" : "start";
@@ -57,7 +56,7 @@ void ScanTarget::enable_vertex_attributes(ShaderType type, Shader &target) {
1);
break;
case ShaderType::Line:
case ShaderType::Conversion:
for(int c = 0; c < 2; ++c) {
const std::string prefix = c ? "end" : "start";