mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-18 04:53:07 +01:00
Cleanup.
This commit is contained in:
@@ -491,7 +491,6 @@ namespace bimg
|
||||
if (UINT8_MAX != idxR)
|
||||
{
|
||||
const bool asFloat = exrHeader.pixel_types[idxR] == TINYEXR_PIXELTYPE_FLOAT;
|
||||
uint32_t srcBpp = 32;
|
||||
uint32_t dstBpp = asFloat ? 32 : 16;
|
||||
format = asFloat ? TextureFormat::R32F : TextureFormat::R16F;
|
||||
uint32_t stepR = 1;
|
||||
@@ -501,7 +500,6 @@ namespace bimg
|
||||
|
||||
if (UINT8_MAX != idxG)
|
||||
{
|
||||
srcBpp += 32;
|
||||
dstBpp = asFloat ? 64 : 32;
|
||||
format = asFloat ? TextureFormat::RG32F : TextureFormat::RG16F;
|
||||
stepG = 1;
|
||||
@@ -509,7 +507,6 @@ namespace bimg
|
||||
|
||||
if (UINT8_MAX != idxB)
|
||||
{
|
||||
srcBpp += 32;
|
||||
dstBpp = asFloat ? 128 : 64;
|
||||
format = asFloat ? TextureFormat::RGBA32F : TextureFormat::RGBA16F;
|
||||
stepB = 1;
|
||||
@@ -517,7 +514,6 @@ namespace bimg
|
||||
|
||||
if (UINT8_MAX != idxA)
|
||||
{
|
||||
srcBpp += 32;
|
||||
dstBpp = asFloat ? 128 : 64;
|
||||
format = asFloat ? TextureFormat::RGBA32F : TextureFormat::RGBA16F;
|
||||
stepA = 1;
|
||||
|
||||
Reference in New Issue
Block a user