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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_pbr.c')
-rw-r--r--source/blender/gpu/intern/gpu_pbr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_pbr.c b/source/blender/gpu/intern/gpu_pbr.c
index 30c25a4bb38..307855a25ec 100644
--- a/source/blender/gpu/intern/gpu_pbr.c
+++ b/source/blender/gpu/intern/gpu_pbr.c
@@ -97,7 +97,7 @@ static GPUScreenBuffer *gpu_scenebuf_create(int width, int height, bool depth_on
}
if (depth_only) {
- buf->tex = GPU_texture_create_depth(width, height, NULL);
+ buf->tex = GPU_texture_create_depth_buffer(width, height, NULL);
if (!buf->tex) {
GPU_scenebuf_free(buf);
return NULL;
@@ -115,7 +115,7 @@ static GPUScreenBuffer *gpu_scenebuf_create(int width, int height, bool depth_on
}
}
else {
- buf->depth = GPU_texture_create_depth(width, height, NULL);
+ buf->depth = GPU_texture_create_depth_buffer(width, height, NULL);
if (!buf->depth) {
GPU_scenebuf_free(buf);
return NULL;