GRAPHICS: Cleanup

- no need to dereference g_driver since createSpecialtyTexture()
  is already called in the correct object's context
This commit is contained in:
Christian Krause 2014-12-31 01:43:45 +01:00
parent ad2ce4a87e
commit 4425493124

View File

@ -172,7 +172,7 @@ void GfxBase::createSpecialtyTexture(uint id, const uint8 *data, int width, int
_specialtyTextures[id]._height = height;
_specialtyTextures[id]._bpp = 4;
_specialtyTextures[id]._colorFormat = BM_RGBA;
g_driver->createTexture(&_specialtyTextures[id], data, nullptr, true);
createTexture(&_specialtyTextures[id], data, nullptr, true);
}
Bitmap *GfxBase::createScreenshotBitmap(const Graphics::PixelBuffer src, int w, int h, bool flipOrientation) {