Changeset 1781
- Timestamp:
- Aug 20, 2012, 8:15:32 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/vs2010/Lol.sln
r1778 r1781 471 471 {1C5B8702-290C-42DA-AA9E-671348F5B747} = {E74CF679-CA2A-47E9-B1F4-3779D6AC6B04} 472 472 {6BF81B39-EDC2-4227-9992-C2D8ABEA95AF} = {E74CF679-CA2A-47E9-B1F4-3779D6AC6B04} 473 {BCEE0132-8E24-49BE-AFEB-96DAD14396BA} = {E74CF679-CA2A-47E9-B1F4-3779D6AC6B04}474 473 {32F3F8CF-D22E-45E4-BEB8-AD909E8C5515} = {33704AA4-F2B5-4138-A40D-E3E77F89ED46} 475 474 {EE203B88-44CF-4859-9D42-7A5F40FECB52} = {8C77EAA8-1077-4EF7-AE53-97C6C60A3601} -
trunk/src/gpu/framebuffer.cpp
r1775 r1781 64 64 { 65 65 m_data->m_size = size; 66 #if defined USE_D3D9 || defined _XBOX66 #if defined USE_D3D9 67 67 if (FAILED(g_d3ddevice->CreateTexture(size.x, size.y, 1, 68 68 D3DUSAGE_RENDERTARGET, … … 71 71 Abort(); 72 72 if (FAILED(m_data->m_texture->GetSurfaceLevel(0, &m_data->m_surface))) 73 Abort(); 74 #elif defined _XBOX 75 if (FAILED(g_d3ddevice->CreateTexture(size.x, size.y, 1, 0, 76 D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, 77 &m_data->m_texture, NULL))) 78 Abort(); 79 if (FAILED(g_d3ddevice->CreateRenderTarget(size.x, size.y, 80 D3DFMT_A8R8G8B8, 81 D3DMULTISAMPLE_NONE, 0, 0, 82 &m_data->m_surface, NULL))) 73 83 Abort(); 74 84 #else … … 181 191 void FrameBuffer::Unbind() 182 192 { 183 #if defined USE_D3D9 || defined _XBOX193 #if defined USE_D3D9 184 194 if (FAILED(g_d3ddevice->SetRenderTarget(0, m_data->m_back_surface))) 185 195 Abort(); 196 m_data->m_back_surface->Release(); 197 #elif defined _XBOX 198 if (FAILED(g_d3ddevice->Resolve(D3DRESOLVE_RENDERTARGET0, NULL, 199 m_data->m_texture, NULL, 0, 0, NULL, 200 0, 0, NULL))) 201 Abort(); 202 if (FAILED(g_d3ddevice->SetRenderTarget(0, m_data->m_back_surface))) 203 Abort(); 204 m_data->m_back_surface->Release(); 186 205 #else 187 206 # if GL_VERSION_1_1 || GL_ES_VERSION_2_0
Note: See TracChangeset
for help on using the changeset viewer.