瀏覽代碼

Fix matching back buffer format issues.

aignacio_sf 18 年之前
父節點
當前提交
940038adb7
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      panda/src/dxgsg8/dxTextureContext8.cxx

+ 0 - 4
panda/src/dxgsg8/dxTextureContext8.cxx

@@ -662,12 +662,8 @@ create_texture(DXScreenData &scrn) {
     // REQUIRED
     // REQUIRED
     pool = D3DPOOL_DEFAULT;
     pool = D3DPOOL_DEFAULT;
     if (support_render_texture && scrn._dxgsg8 -> get_supports_render_texture ( )) {
     if (support_render_texture && scrn._dxgsg8 -> get_supports_render_texture ( )) {
-      target_pixel_format = scrn._render_to_texture_d3d_format;
       usage |= D3DUSAGE_RENDERTARGET;
       usage |= D3DUSAGE_RENDERTARGET;
     }
     }
-    else {
-      target_pixel_format = scrn._framebuffer_d3d_format;
-    }
   }
   }
   else {
   else {
     pool = D3DPOOL_MANAGED;
     pool = D3DPOOL_MANAGED;