Cleanup: GPU: Encapsulate glViewport calls
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user