mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-14 02:31:12 +00:00
Make glGetTexImage blit fallback support more robust. Closes #1907
This commit is contained in:
@@ -774,7 +774,7 @@ void ImageViewer::RefreshFile()
|
||||
{
|
||||
// see if we can convert this format on the CPU for proxying
|
||||
bool convertSupported = false;
|
||||
ConvertComponents(texDetails.format, NULL, &convertSupported);
|
||||
DecodeFormattedComponents(texDetails.format, NULL, &convertSupported);
|
||||
|
||||
if(convertSupported)
|
||||
{
|
||||
@@ -810,7 +810,7 @@ void ImageViewer::RefreshFile()
|
||||
{
|
||||
for(uint32_t x = 0; x < mipwidth; x++)
|
||||
{
|
||||
*dst = ConvertComponents(texDetails.format, src);
|
||||
*dst = DecodeFormattedComponents(texDetails.format, src);
|
||||
dst++;
|
||||
src += srcStride;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user