Shark.cpp
branchv_0
changeset 15 1eb7cfefbeea
parent 12 076e3b2d97ac
child 19 262828ae9682
--- a/Shark.cpp	Sun Dec 03 12:32:55 2023 +0100
+++ b/Shark.cpp	Sun Dec 03 13:13:37 2023 +0100
@@ -272,6 +272,10 @@
 	glc = glXCreateContext(dpy, vi, NULL, GL_TRUE);
 	glXMakeCurrent(dpy, win, glc);
 
+	glEnable(GL_DEPTH_TEST);
+	glEnable(GL_BLEND);
+	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
 	clear();
 	glXSwapBuffers(dpy, win);