mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -151,6 +151,9 @@ Canvas::~Canvas()
|
||||
|
||||
bool Canvas::loadVolatile()
|
||||
{
|
||||
if (texture != 0)
|
||||
return true;
|
||||
|
||||
OpenGL::TempDebugGroup debuggroup("Canvas load");
|
||||
|
||||
fbo = texture = 0;
|
||||
|
||||
Reference in New Issue
Block a user