From 7887164dfc3ae066ea0fd766f8417ff30efe67b9 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 19 Jun 2013 22:15:01 +0100 Subject: [PATCH] Remove old DGL test code --- source/libs/distrho/dgl/src/ImageKnob.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/distrho/dgl/src/ImageKnob.cpp b/source/libs/distrho/dgl/src/ImageKnob.cpp index e120756cd..2149a93d3 100644 --- a/source/libs/distrho/dgl/src/ImageKnob.cpp +++ b/source/libs/distrho/dgl/src/ImageKnob.cpp @@ -182,7 +182,7 @@ void ImageKnob::onDisplay() { const float normValue = (fValue - fMinimum) / (fMaximum - fMinimum); - if (fRotationAngle != 0 || true) + if (fRotationAngle != 0) { glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, fTextureId); @@ -223,7 +223,7 @@ void ImageKnob::onDisplay() } else { - const int layerDataSize = fImgLayerSize * fImgLayerSize * (fImage.getFormat() == GL_BGRA || fImage.getFormat() == GL_RGBA ? 4 : 3); + const int layerDataSize = fImgLayerSize * fImgLayerSize * ((fImage.getFormat() == GL_BGRA || fImage.getFormat() == GL_RGBA) ? 4 : 3); const int imageDataSize = layerDataSize * fImgLayerCount; const int imageDataOffset = imageDataSize - layerDataSize - (layerDataSize * int(normValue * float(fImgLayerCount-1)));