always use 0 for the default texture

This commit is contained in:
Glenn Maynard
2007-02-21 03:54:12 +00:00
parent 87ffd148e8
commit 8f29e21c9f
5 changed files with 1 additions and 7 deletions
-3
View File
@@ -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,
-1
View File
@@ -27,7 +27,6 @@ public:
PixelFormat pixfmt,
RageSurface* img,
bool bGenerateMipMaps );
unsigned CreateTextureDefault() { return 0; }
void UpdateTexture(
unsigned iTexHandle,
RageSurface* img,
-1
View File
@@ -24,7 +24,6 @@ public:
PixelFormat pixfmt,
RageSurface* img,
bool bGenerateMipMaps ) { return 1; }
unsigned CreateTextureDefault() { return 0; }
void UpdateTexture(
unsigned iTexHandle,
RageSurface* img,
-1
View File
@@ -34,7 +34,6 @@ public:
PixelFormat pixfmt,
RageSurface* img,
bool bGenerateMipMaps );
unsigned CreateTextureDefault() { return 0; }
void UpdateTexture(
unsigned iTexHandle,
RageSurface* img,
+1 -1
View File
@@ -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;