summaryrefslogtreecommitdiff
path: root/silx/gui/_glutils/FramebufferTexture.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/_glutils/FramebufferTexture.py')
-rw-r--r--silx/gui/_glutils/FramebufferTexture.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/silx/gui/_glutils/FramebufferTexture.py b/silx/gui/_glutils/FramebufferTexture.py
index cc05080..e065030 100644
--- a/silx/gui/_glutils/FramebufferTexture.py
+++ b/silx/gui/_glutils/FramebufferTexture.py
@@ -1,7 +1,7 @@
# coding: utf-8
# /*##########################################################################
#
-# Copyright (c) 2014-2017 European Synchrotron Radiation Facility
+# Copyright (c) 2014-2020 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -62,6 +62,7 @@ class FramebufferTexture(object):
**kwargs):
self._texture = Texture(internalFormat, shape=shape, **kwargs)
+ self._texture.prepare()
self._previousFramebuffer = 0 # Used by with statement