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:
authorClément Foucault <foucault.clem@gmail.com>2020-07-17 20:03:30 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-07-18 04:43:52 +0300
commita6bd7777c20aa229ae9c4cdd537e94cf8a9c7edf (patch)
tree839f559613038d8ec17e18b7bc85b1a231bf01a4 /source/blender/gpu/intern/gpu_state.c
parent35f1b3e43b37006486b94675466cf4260087e269 (diff)
Cleanup: GPU: Encapsulate glViewport calls
Diffstat (limited to 'source/blender/gpu/intern/gpu_state.c')
-rw-r--r--source/blender/gpu/intern/gpu_state.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c
index 8dc246904df..1e79212fc4e 100644
--- a/source/blender/gpu/intern/gpu_state.c
+++ b/source/blender/gpu/intern/gpu_state.c
@@ -151,6 +151,11 @@ void GPU_scissor(int x, int y, int width, int height)
glScissor(x, y, width, height);
}
+void GPU_viewport(int x, int y, int width, int height)
+{
+ glViewport(x, y, width, height);
+}
+
void GPU_scissor_get_f(float coords[4])
{
glGetFloatv(GL_SCISSOR_BOX, coords);