GL_PROXY_TEXTURE_2D_ARRAY of 2509x2509x1 fails to be allocated.
This is the texture size of when allocating a shadow cubemap map with the size of 1024.
Not sure this is a full fix, but with these changes the scene renders fine.
Fix: T63223
Differential D4651
GPU not able to allocate texture Authored by Jeroen Bakker (jbakker) on Apr 5 2019, 12:54 PM. Tags None Subscribers None
Details GL_PROXY_TEXTURE_2D_ARRAY of 2509x2509x1 fails to be allocated. NOTE: I only needed to update the GL_PROXY_TEXTURE change. the GL_TEXTURE_ I updated to make the
code similar, but it is not needed to fix the issue
Fix: T63223
Diff Detail
Event TimelineComment Actions If that helps workaround the problem I may be Ok to use GL_PROXY_TEXTURE_2D_ARRAY only if d > 1; but for completeness the final texture NEEDS to be GL_TEXTURE_2D_ARRAY. This is because the sampler is a sampler2DArray and binding a 2D texture will surely trigger an error. The Proxy texture mechanism is kindof broken in some cases. Comment Actions If proxy and non-proxy are different, there should at least be a comment explaining why this was done. |