always use 0 for the default texture
This commit is contained in:
@@ -196,9 +196,6 @@ public:
|
|||||||
RageSurface* img, // must be in pixfmt
|
RageSurface* img, // must be in pixfmt
|
||||||
bool bGenerateMipMaps
|
bool bGenerateMipMaps
|
||||||
) = 0;
|
) = 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(
|
virtual void UpdateTexture(
|
||||||
unsigned iTexHandle,
|
unsigned iTexHandle,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ public:
|
|||||||
PixelFormat pixfmt,
|
PixelFormat pixfmt,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
bool bGenerateMipMaps );
|
bool bGenerateMipMaps );
|
||||||
unsigned CreateTextureDefault() { return 0; }
|
|
||||||
void UpdateTexture(
|
void UpdateTexture(
|
||||||
unsigned iTexHandle,
|
unsigned iTexHandle,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ public:
|
|||||||
PixelFormat pixfmt,
|
PixelFormat pixfmt,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
bool bGenerateMipMaps ) { return 1; }
|
bool bGenerateMipMaps ) { return 1; }
|
||||||
unsigned CreateTextureDefault() { return 0; }
|
|
||||||
void UpdateTexture(
|
void UpdateTexture(
|
||||||
unsigned iTexHandle,
|
unsigned iTexHandle,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ public:
|
|||||||
PixelFormat pixfmt,
|
PixelFormat pixfmt,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
bool bGenerateMipMaps );
|
bool bGenerateMipMaps );
|
||||||
unsigned CreateTextureDefault() { return 0; }
|
|
||||||
void UpdateTexture(
|
void UpdateTexture(
|
||||||
unsigned iTexHandle,
|
unsigned iTexHandle,
|
||||||
RageSurface* img,
|
RageSurface* img,
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public:
|
|||||||
RageTexture_Default():
|
RageTexture_Default():
|
||||||
RageTexture( RageTextureID() )
|
RageTexture( RageTextureID() )
|
||||||
{
|
{
|
||||||
m_uTexHandle = DISPLAY->CreateTextureDefault();
|
m_uTexHandle = 0;
|
||||||
m_iSourceWidth = m_iSourceHeight = 1;
|
m_iSourceWidth = m_iSourceHeight = 1;
|
||||||
m_iTextureWidth = m_iTextureHeight = 1;
|
m_iTextureWidth = m_iTextureHeight = 1;
|
||||||
m_iImageWidth = m_iImageHeight = 1;
|
m_iImageWidth = m_iImageHeight = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user