Browse Source

Reset color to white before drawing texture

master
Krisjanis Rijnieks 10 years ago
parent
commit
9bf14255c8
  1. 2
      src/Surfaces/SurfaceManagerGui.cpp

2
src/Surfaces/SurfaceManagerGui.cpp

@ -43,6 +43,8 @@ namespace ofx {
} else if (guiMode == GuiMode::TEXTURE_MAPPING) {
// draw the texture of the selected surface
if (surfaceManager->getSelectedSurface() != NULL) {
// Reset default color to white first
ofSetColor(255, 255, 255, 255);
surfaceManager->getSelectedSurface()->drawTexture(ofVec2f(0, 0));
}

Loading…
Cancel
Save