Browse Source

Remove old DGL test code

tags/1.9.4
falkTX 11 years ago
parent
commit
7887164dfc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/libs/distrho/dgl/src/ImageKnob.cpp

+ 2
- 2
source/libs/distrho/dgl/src/ImageKnob.cpp View File

@@ -182,7 +182,7 @@ void ImageKnob::onDisplay()
{ {
const float normValue = (fValue - fMinimum) / (fMaximum - fMinimum); const float normValue = (fValue - fMinimum) / (fMaximum - fMinimum);


if (fRotationAngle != 0 || true)
if (fRotationAngle != 0)
{ {
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, fTextureId); glBindTexture(GL_TEXTURE_2D, fTextureId);
@@ -223,7 +223,7 @@ void ImageKnob::onDisplay()
} }
else 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 imageDataSize = layerDataSize * fImgLayerCount;
const int imageDataOffset = imageDataSize - layerDataSize - (layerDataSize * int(normValue * float(fImgLayerCount-1))); const int imageDataOffset = imageDataSize - layerDataSize - (layerDataSize * int(normValue * float(fImgLayerCount-1)));




Loading…
Cancel
Save