OPENGL: Fix cursor regression when defaultFormat doesn't have an alpha channel.

This commit is contained in:
Johannes Schickel 2014-02-11 12:19:30 +01:00
parent 16898486fa
commit abcadb5d87
2 changed files with 10 additions and 6 deletions

View file

@ -174,10 +174,13 @@ private:
/**
* Create a texture with the specified pixel format.
*
* @param format The pixel format the Texture object should accept as input.
* @param format The pixel format the Texture object should accept as
* input.
* @param wantAlpha For CLUT8 textures this marks whether an alpha
* channel should be used.
* @return A pointer to the texture or nullptr on failure.
*/
Texture *createTexture(const Graphics::PixelFormat &format);
Texture *createTexture(const Graphics::PixelFormat &format, bool wantAlpha = false);
//
// Transaction support