diff options
author | Patrick Rudolph <siro@das-labor.org> | 2016-07-31 11:24:33 +0200 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-09-21 11:48:49 +0100 |
commit | 3fcc2a9fae0dc4625b0610d4b64ceedb81546e3f (patch) | |
tree | 6bbe3d9b7e9997b51b456e390744e6f7902e2f23 | |
parent | ea35513ccb9347cdd03648c5d5be8ea806db0a92 (diff) |
d3dretrace: Add support for D3DFMT_R32F
Dump D3DFMT_R32F the same way as D32F_LOCKABLE.
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
-rw-r--r-- | retrace/d3d9state_formats.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/retrace/d3d9state_formats.cpp b/retrace/d3d9state_formats.cpp index d898c739..845ae26d 100644 --- a/retrace/d3d9state_formats.cpp +++ b/retrace/d3d9state_formats.cpp @@ -180,6 +180,7 @@ ConvertImage(D3DFORMAT SrcFormat, numChannels = 3; channelType = image::TYPE_UNORM8; break; + case D3DFMT_R32F: case D3DFMT_D16: case D3DFMT_D16_LOCKABLE: case D3DFMT_D24S8: @@ -247,6 +248,7 @@ ConvertImage(D3DFORMAT SrcFormat, } break; case D3DFMT_D32F_LOCKABLE: + case D3DFMT_R32F: memcpy(dst, src, Width * sizeof(float)); break; default: |