always use 0 for the default texture
This commit is contained in:
@@ -196,9 +196,6 @@ public:
|
||||
RageSurface* img, // must be in pixfmt
|
||||
bool bGenerateMipMaps
|
||||
) = 0;
|
||||
/* Return a texture handle to the default texture, an opaque, all-white,
|
||||
* immutable texture. Deleting or updating this texture has no effect. */
|
||||
virtual unsigned CreateTextureDefault() = 0;
|
||||
virtual void UpdateTexture(
|
||||
unsigned iTexHandle,
|
||||
RageSurface* img,
|
||||
|
||||
@@ -27,7 +27,6 @@ public:
|
||||
PixelFormat pixfmt,
|
||||
RageSurface* img,
|
||||
bool bGenerateMipMaps );
|
||||
unsigned CreateTextureDefault() { return 0; }
|
||||
void UpdateTexture(
|
||||
unsigned iTexHandle,
|
||||
RageSurface* img,
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
PixelFormat pixfmt,
|
||||
RageSurface* img,
|
||||
bool bGenerateMipMaps ) { return 1; }
|
||||
unsigned CreateTextureDefault() { return 0; }
|
||||
void UpdateTexture(
|
||||
unsigned iTexHandle,
|
||||
RageSurface* img,
|
||||
|
||||
@@ -34,7 +34,6 @@ public:
|
||||
PixelFormat pixfmt,
|
||||
RageSurface* img,
|
||||
bool bGenerateMipMaps );
|
||||
unsigned CreateTextureDefault() { return 0; }
|
||||
void UpdateTexture(
|
||||
unsigned iTexHandle,
|
||||
RageSurface* img,
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
RageTexture_Default():
|
||||
RageTexture( RageTextureID() )
|
||||
{
|
||||
m_uTexHandle = DISPLAY->CreateTextureDefault();
|
||||
m_uTexHandle = 0;
|
||||
m_iSourceWidth = m_iSourceHeight = 1;
|
||||
m_iTextureWidth = m_iTextureHeight = 1;
|
||||
m_iImageWidth = m_iImageHeight = 1;
|
||||
|
||||
Reference in New Issue
Block a user