Make glGetTexImage blit fallback support more robust. Closes #1907

This commit is contained in:
baldurk
2020-05-25 16:27:53 +01:00
parent 4055e9f2f3
commit 45d15596de
9 changed files with 797 additions and 198 deletions
+2 -2
View File
@@ -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;
}