store background_rgb as 0-1 float, not 0-255 int

This commit is contained in:
Laura Klünder 2017-11-08 14:35:14 +01:00
parent f82c7de5da
commit c87780dd75
3 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ class OpenGLWorker(threading.Thread):
task = self._queue.get()
ctx = self._get_ctx(task.width*task.samples, task.height*task.samples)
ctx.ctx.clear(*(i / 255 for i in task.background_rgb))
ctx.ctx.clear(*task.background_rgb)
if task.vertices:
vbo = ctx.ctx.buffer(task.vertices)