From 79b4136a8d70cbc64d1c1576757cbb168a228e01 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Wed, 4 Apr 2012 17:32:43 -0300 Subject: [PATCH] ... --- src/framework/graphics/texture.cpp | 2 +- src/otclient/core/creature.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/graphics/texture.cpp b/src/framework/graphics/texture.cpp index 58a6ae7d..63cd0c4b 100644 --- a/src/framework/graphics/texture.cpp +++ b/src/framework/graphics/texture.cpp @@ -145,7 +145,7 @@ std::vector Texture::getPixels() // NOTE: this can be slow, but its the only way to get pixels from a texture in OpenGL ES FrameBufferPtr fb(new FrameBuffer(m_size)); fb->bind(); - fb->clear(Fw::alpha); + fb->clear(Color::alpha); g_painter.saveAndResetState(); g_painter.drawTexturedRect(Rect(0,0,m_size), shared_from_this()); glReadPixels(0, 0, m_size.width(), m_size.height(), GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); diff --git a/src/otclient/core/creature.cpp b/src/otclient/core/creature.cpp index 3c2a7c87..31bf5426 100644 --- a/src/otclient/core/creature.cpp +++ b/src/otclient/core/creature.cpp @@ -184,7 +184,7 @@ void Creature::drawOutfit(const Rect& destRect, bool resize) outfitBuffer = FrameBufferPtr(new FrameBuffer(Size(2*Otc::TILE_PIXELS, 2*Otc::TILE_PIXELS))); outfitBuffer->bind(); - outfitBuffer->clear(); + outfitBuffer->clear(Color::alpha); internalDrawOutfit(Point(Otc::TILE_PIXELS,Otc::TILE_PIXELS) + getDisplacement(), 1, false, true, Otc::South); outfitBuffer->release();