remove hack
This commit is contained in:
@@ -60,12 +60,10 @@ void RageBitmapTexture::Reload()
|
|||||||
* Dither forces dithering when loading 16-bit textures.
|
* Dither forces dithering when loading 16-bit textures.
|
||||||
* Stretch forces the loaded image to fill the texture completely.
|
* Stretch forces the loaded image to fill the texture completely.
|
||||||
*/
|
*/
|
||||||
extern bool g_bFoobar; /* temp hack */
|
|
||||||
void RageBitmapTexture::Create()
|
void RageBitmapTexture::Create()
|
||||||
{
|
{
|
||||||
RageTextureID actualID = GetID();
|
RageTextureID actualID = GetID();
|
||||||
g_bFoobar = ( Basename(actualID.filename) == "pledge.png" );
|
|
||||||
if( g_bFoobar ) LOG->Trace("save %s", actualID.filename.c_str());
|
|
||||||
/* Create (and return) a surface ready to be loaded to OpenGL */
|
/* Create (and return) a surface ready to be loaded to OpenGL */
|
||||||
/* Load the image into a RageSurface. */
|
/* Load the image into a RageSurface. */
|
||||||
CString error;
|
CString error;
|
||||||
|
|||||||
@@ -1614,7 +1614,6 @@ RageDisplay::PixelFormat RageDisplay_OGL::GetImgPixelFormat( RageSurface* &img,
|
|||||||
return pixfmt;
|
return pixfmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool g_bFoobar=false; /* temp hack */
|
|
||||||
unsigned RageDisplay_OGL::CreateTexture(
|
unsigned RageDisplay_OGL::CreateTexture(
|
||||||
PixelFormat pixfmt,
|
PixelFormat pixfmt,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
@@ -1714,15 +1713,6 @@ unsigned RageDisplay_OGL::CreateTexture(
|
|||||||
|
|
||||||
|
|
||||||
FlushGLErrors();
|
FlushGLErrors();
|
||||||
if( g_bFoobar )
|
|
||||||
{
|
|
||||||
FILE *tmp = fopen("testing.raw", "w+b");
|
|
||||||
ASSERT( tmp );
|
|
||||||
fwrite( img->pixels, img->h * img->pitch, 1, tmp );
|
|
||||||
fclose(tmp);
|
|
||||||
LOG->Trace("masks: %08x %08x %08x %08x", img->fmt.Rmask, img->fmt.Gmask, img->fmt.Bmask, img->fmt.Amask);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if( bGenerateMipMaps )
|
if( bGenerateMipMaps )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user