Shader uniforms keep their values after love.window.setMode (resolves issue #1174).

Also allow arrays of images/samplers in shaders, although driver support is iffy and you have to index into the array using a compile-time constant (which might exclude loop indexing).

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-11-21 18:28:16 -04:00
parent 639c229bd7
commit 9d2ee6d909
6 changed files with 351 additions and 242 deletions
+3
View File
@@ -281,6 +281,9 @@ void Image::loadFromImageData()
bool Image::loadVolatile()
{
if (texture != 0)
return true;
OpenGL::TempDebugGroup debuggroup("Image load");
if (isCompressed() && !hasCompressedTextureSupport(cdata[0]->getFormat(), sRGB))