Disabled the use of glTexStorage* when creating a proxy texture
Looks like AMD drivers does not like it Former-commit-id: 854492215bb977df39d06cf7b1beab97c0961e08
This commit is contained in:
parent
0ebf993ed8
commit
9de90a78e5
|
|
@ -40,7 +40,7 @@ namespace
|
||||||
{
|
{
|
||||||
case nzImageType_1D:
|
case nzImageType_1D:
|
||||||
{
|
{
|
||||||
if (glTexStorage1D)
|
if (glTexStorage1D && !proxy) // Les drivers AMD semblent ne pas aimer glTexStorage avec un format proxy
|
||||||
glTexStorage1D(target, impl->levelCount, openGLFormat.internalFormat, impl->width);
|
glTexStorage1D(target, impl->levelCount, openGLFormat.internalFormat, impl->width);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -58,7 +58,7 @@ namespace
|
||||||
case nzImageType_1D_Array:
|
case nzImageType_1D_Array:
|
||||||
case nzImageType_2D:
|
case nzImageType_2D:
|
||||||
{
|
{
|
||||||
if (glTexStorage2D)
|
if (glTexStorage2D && !proxy)
|
||||||
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
|
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -80,7 +80,7 @@ namespace
|
||||||
case nzImageType_2D_Array:
|
case nzImageType_2D_Array:
|
||||||
case nzImageType_3D:
|
case nzImageType_3D:
|
||||||
{
|
{
|
||||||
if (glTexStorage3D)
|
if (glTexStorage3D && !proxy)
|
||||||
glTexStorage3D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height, impl->depth);
|
glTexStorage3D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height, impl->depth);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -105,7 +105,7 @@ namespace
|
||||||
|
|
||||||
case nzImageType_Cubemap:
|
case nzImageType_Cubemap:
|
||||||
{
|
{
|
||||||
if (glTexStorage2D)
|
if (glTexStorage2D && !proxy)
|
||||||
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
|
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue