mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix matching back buffer format issues.
This commit is contained in:
parent
5a8d63954b
commit
940038adb7
@ -662,12 +662,8 @@ create_texture(DXScreenData &scrn) {
|
||||
// REQUIRED
|
||||
pool = D3DPOOL_DEFAULT;
|
||||
if (support_render_texture && scrn._dxgsg8 -> get_supports_render_texture ( )) {
|
||||
target_pixel_format = scrn._render_to_texture_d3d_format;
|
||||
usage |= D3DUSAGE_RENDERTARGET;
|
||||
}
|
||||
else {
|
||||
target_pixel_format = scrn._framebuffer_d3d_format;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pool = D3DPOOL_MANAGED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user