Commit 0d56c430 by Geoff Lang Committed by Shannon Woods

Image11 now determines if a format is renderable by checking the RTV format…

Image11 now determines if a format is renderable by checking the RTV format exists rather than the SRV format. Added several more RTV DXGI formats to the table to allow fast copies. TRAC #23276 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent 24159226
......@@ -130,7 +130,7 @@ bool Image11::redefine(Renderer *renderer, GLenum target, GLint internalformat,
// compute the d3d format that will be used
mDXGIFormat = gl_d3d11::GetTexFormat(internalformat, clientVersion);
mActualFormat = d3d11_gl::GetInternalFormat(mDXGIFormat);
mRenderable = gl_d3d11::GetTexFormat(internalformat, clientVersion) != DXGI_FORMAT_UNKNOWN;
mRenderable = gl_d3d11::GetRTVFormat(internalformat, clientVersion) != DXGI_FORMAT_UNKNOWN;
if (mStagingTexture)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment