Browse Source

gpu: D3DFMT_R8G8B8 doesn't seem to exist on the X360.

legacy
Sam Hocevar sam 12 years ago
parent
commit
0ea16b413e
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/gpu/texture.cpp

+ 6
- 2
src/gpu/texture.cpp View File

@@ -71,13 +71,17 @@ Texture::Texture(ivec2 size, PixelFormat format)
m_data->m_format = format;

#if defined USE_D3D9 || defined _XBOX
static int const d3d_formats[] =
static D3DFORMAT const d3d_formats[] =
{
/* Unknown */
D3DFMT_UNKNOWN,

/* R8G8B8 */
# if defined USE_D3D9
D3DFMT_R8G8B8,
# else
D3DFMT_UNKNOWN,
# endif

/* A8R8G8B8 */
# if defined USE_D3D9
@@ -88,7 +92,7 @@ Texture::Texture(ivec2 size, PixelFormat format)
# endif
};

int d3d_format = GET_CLAMPED(d3d_formats, format);
D3DFORMAT d3d_format = GET_CLAMPED(d3d_formats, format);
# if defined USE_D3D9
int d3d_usage = D3DUSAGE_DYNAMIC;
# else


Loading…
Cancel
Save