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:
Lynix 2014-07-08 11:02:27 +02:00
parent 0ebf993ed8
commit 9de90a78e5
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ namespace
{
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);
else
{
@ -58,7 +58,7 @@ namespace
case nzImageType_1D_Array:
case nzImageType_2D:
{
if (glTexStorage2D)
if (glTexStorage2D && !proxy)
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
else
{
@ -80,7 +80,7 @@ namespace
case nzImageType_2D_Array:
case nzImageType_3D:
{
if (glTexStorage3D)
if (glTexStorage3D && !proxy)
glTexStorage3D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height, impl->depth);
else
{
@ -105,7 +105,7 @@ namespace
case nzImageType_Cubemap:
{
if (glTexStorage2D)
if (glTexStorage2D && !proxy)
glTexStorage2D(target, impl->levelCount, openGLFormat.internalFormat, impl->width, impl->height);
else
{