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
+2 -2
View File
@@ -106,8 +106,8 @@ public:
enum FramebufferTarget
{
FRAMEBUFFER_READ = (1 << 1),
FRAMEBUFFER_DRAW = (1 << 2),
FRAMEBUFFER_READ = (1 << 0),
FRAMEBUFFER_DRAW = (1 << 1),
FRAMEBUFFER_ALL = (FRAMEBUFFER_READ | FRAMEBUFFER_DRAW),
};