Browse Source

Fixed D3D9 compilation (note: D3D9 version still not working)

legacy
Benlitz benlitz 11 years ago
parent
commit
c75c255e26
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/gpu/framebuffer.cpp

+ 1
- 1
src/gpu/framebuffer.cpp View File

@@ -284,7 +284,7 @@ Framebuffer::Framebuffer(ivec2 size, FramebufferFormat fbo_format)
#if defined USE_D3D9 #if defined USE_D3D9
if (FAILED(g_d3ddevice->CreateTexture(size.x, size.y, 1, if (FAILED(g_d3ddevice->CreateTexture(size.x, size.y, 1,
D3DUSAGE_RENDERTARGET, D3DUSAGE_RENDERTARGET,
fbo_format.GetFormat(), D3DPOOL_DEFAULT,
(D3DFORMAT)fbo_format.GetFormat(), D3DPOOL_DEFAULT,
&m_data->m_texture, nullptr))) &m_data->m_texture, nullptr)))
Abort(); Abort();
if (FAILED(m_data->m_texture->GetSurfaceLevel(0, &m_data->m_surface))) if (FAILED(m_data->m_texture->GetSurfaceLevel(0, &m_data->m_surface)))


Loading…
Cancel
Save