mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:43:31 +02:00
Added debug message for uncomressed texture on GLES
This commit is contained in:
parent
0f59059490
commit
87cb04d79e
1 changed files with 2 additions and 0 deletions
|
@ -927,6 +927,7 @@ gpu::TexturePointer TextureUsage::process2DTextureColorFromImage(Image&& srcImag
|
||||||
} else {
|
} else {
|
||||||
if (target == BackendTarget::GLES32) {
|
if (target == BackendTarget::GLES32) {
|
||||||
//TODO: is this correct? It seems that no format is set for uncompressed texture on GLES
|
//TODO: is this correct? It seems that no format is set for uncompressed texture on GLES
|
||||||
|
qDebug() << "TextureUsage::process2DTextureColorFromImage: no format is set for uncompressed texture on GLES";
|
||||||
} else {
|
} else {
|
||||||
formatGPU = gpu::Element::COLOR_SRGBA_32;
|
formatGPU = gpu::Element::COLOR_SRGBA_32;
|
||||||
formatMip = gpu::Element::COLOR_SBGRA_32;
|
formatMip = gpu::Element::COLOR_SBGRA_32;
|
||||||
|
@ -986,6 +987,7 @@ gpu::TexturePointer TextureUsage::process2DHDRTextureColorFromImage(Image&& srcI
|
||||||
formatMip = formatGPU;
|
formatMip = formatGPU;
|
||||||
} else {
|
} else {
|
||||||
//TODO: is this correct? It seems that no format is set for uncompressed texture on GLES
|
//TODO: is this correct? It seems that no format is set for uncompressed texture on GLES
|
||||||
|
qDebug() << "TextureUsage::process2DHDRTextureColorFromImage: no format is set for uncompressed texture on GLES";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
formatMip = formatGPU = getHDRTextureFormatForTarget(target, compress);
|
formatMip = formatGPU = getHDRTextureFormatForTarget(target, compress);
|
||||||
|
|
Loading…
Reference in a new issue