From da57563c1cc27790417eac55b99e0d52da8528c9 Mon Sep 17 00:00:00 2001 From: Stephan Unverwerth Date: Sun, 16 May 2021 14:05:13 +0200 Subject: LibGL: Implement glShadeModel() This turns off interpolation of vertex colors when GL_FLAT is selected. --- Userland/Libraries/LibGL/GLLights.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Userland/Libraries/LibGL/GLLights.cpp (limited to 'Userland/Libraries/LibGL/GLLights.cpp') diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp new file mode 100644 index 0000000000..afd1c746d1 --- /dev/null +++ b/Userland/Libraries/LibGL/GLLights.cpp @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2021, Stephan Unverwerth + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#include "GL/gl.h" +#include "GLContext.h" + +extern GL::GLContext* g_gl_context; + +void glShadeModel(GLenum mode) +{ + g_gl_context->gl_shade_model(mode); +} -- cgit v1.2.3