SDL_video: Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR

This commit is contained in:
Shootfast
2022-07-06 20:12:30 +01:00
committed by Sam Lantinga
parent 0b9868b026
commit 60d1944e46
6 changed files with 38 additions and 2 deletions

View File

@@ -261,6 +261,9 @@ Cocoa_GL_CreateContext(_THIS, SDL_Window * window)
attr[i++] = _this->gl_config.multisamplesamples;
attr[i++] = NSOpenGLPFANoRecovery;
}
if (_this->gl_config.floatbuffers) {
attr[i++] = NSOpenGLPFAColorFloat;
}
if (_this->gl_config.accelerated >= 0) {
if (_this->gl_config.accelerated) {