gpu/headless: remove macOS context preparation no longer necessary

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-06-11 09:48:25 +02:00
parent 39eeaaff94
commit 200957f924
3 changed files with 1 additions and 18 deletions
-8
View File
@@ -43,11 +43,3 @@ void gio_headless_makeCurrentContext(CFTypeRef ctxRef) {
[ctx makeCurrentContext];
CGLLockContext([ctx CGLContextObj]);
}
void gio_headless_prepareContext(CFTypeRef ctxRef) {
// Bind a default VBA to emulate OpenGL ES 2.
GLuint defVBA;
glGenVertexArrays(1, &defVBA);
glBindVertexArray(defVBA);
glEnable(GL_FRAMEBUFFER_SRGB);
}