summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/graphics.c b/src/graphics.c
index 039bba3..2f2c367 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -412,6 +412,12 @@ void clearScreen(float alpha)
glClear(GL_COLOR_BUFFER_BIT);
}
+void clearScreenNP(float alpha)
+{
+ glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
+ glClear(GL_COLOR_BUFFER_BIT);
+}
+
void ogl_blit(int x, int y, int w, int h, pixel *src, int pitch, int scale)
{