From c75c255e26b7a76c8f7e6eb8233ccba68509dd58 Mon Sep 17 00:00:00 2001 From: Benlitz Date: Mon, 17 Jun 2013 15:30:21 +0000 Subject: [PATCH] Fixed D3D9 compilation (note: D3D9 version still not working) --- src/gpu/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/framebuffer.cpp b/src/gpu/framebuffer.cpp index 26900fbf..5f501522 100644 --- a/src/gpu/framebuffer.cpp +++ b/src/gpu/framebuffer.cpp @@ -284,7 +284,7 @@ Framebuffer::Framebuffer(ivec2 size, FramebufferFormat fbo_format) #if defined USE_D3D9 if (FAILED(g_d3ddevice->CreateTexture(size.x, size.y, 1, D3DUSAGE_RENDERTARGET, - fbo_format.GetFormat(), D3DPOOL_DEFAULT, + (D3DFORMAT)fbo_format.GetFormat(), D3DPOOL_DEFAULT, &m_data->m_texture, nullptr))) Abort(); if (FAILED(m_data->m_texture->GetSurfaceLevel(0, &m_data->m_surface)))