store background_rgb as 0-1 float, not 0-255 int
This commit is contained in:
parent
f82c7de5da
commit
c87780dd75
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue