Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-08-05 15:10:08 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-08-05 15:10:08 +0300
commit42f423387124c0ebcf222c2384c83c6028042b71 (patch)
tree5da03915f7c25981a632766b2c65a7bedfd990cc /doc
parent1cf5c5085eda5e6db677495844c8825648195156 (diff)
parent229fe01a152124308ad8552e6b792b9ebdaeec5a (diff)
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/examples/gpu.7.py1
-rw-r--r--doc/python_api/examples/gpu.8.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/python_api/examples/gpu.7.py b/doc/python_api/examples/gpu.7.py
index 56cbb93c61a..d6055898807 100644
--- a/doc/python_api/examples/gpu.7.py
+++ b/doc/python_api/examples/gpu.7.py
@@ -20,6 +20,7 @@ from gpu_extras.presets import draw_circle_2d
offscreen = gpu.types.GPUOffScreen(512, 512)
with offscreen.bind():
+ bgl.glClearColor(0.0, 0.0, 0.0, 0.0)
bgl.glClear(bgl.GL_COLOR_BUFFER_BIT)
with gpu.matrix.push_pop():
# reset matrices -> use normalized device coordinates [-1, 1]
diff --git a/doc/python_api/examples/gpu.8.py b/doc/python_api/examples/gpu.8.py
index 470bd8a2dad..e67c601def9 100644
--- a/doc/python_api/examples/gpu.8.py
+++ b/doc/python_api/examples/gpu.8.py
@@ -25,6 +25,7 @@ RING_AMOUNT = 10
offscreen = gpu.types.GPUOffScreen(WIDTH, HEIGHT)
with offscreen.bind():
+ bgl.glClearColor(0.0, 0.0, 0.0, 0.0)
bgl.glClear(bgl.GL_COLOR_BUFFER_BIT)
with gpu.matrix.push_pop():
# reset matrices -> use normalized device coordinates [-1, 1]