comparison src/video/x11/SDL_x11opengl.c @ 1956:ba0d62354872

Simplified driver window creation code. Implemented several Cocoa window functions
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Jul 2006 21:51:00 +0000
parents 8c6106e45fc1
children 12bcd4fd2606
comparison
equal deleted inserted replaced
1955:8c6106e45fc1 1956:ba0d62354872
111 "glXSwapBuffers"); 111 "glXSwapBuffers");
112 112
113 if (!_this->gl_data->glXChooseVisual || 113 if (!_this->gl_data->glXChooseVisual ||
114 !_this->gl_data->glXCreateContext || 114 !_this->gl_data->glXCreateContext ||
115 !_this->gl_data->glXDestroyContext || 115 !_this->gl_data->glXDestroyContext ||
116 !_this->gl_data->glXMakeCurrent || 116 !_this->gl_data->glXMakeCurrent || !_this->gl_data->glXSwapBuffers) {
117 !_this->gl_data->glXSwapBuffers) {
118 SDL_SetError("Could not retrieve OpenGL functions"); 117 SDL_SetError("Could not retrieve OpenGL functions");
119 return -1; 118 return -1;
120 } 119 }
121 120
122 _this->gl_config.dll_handle = handle; 121 _this->gl_config.dll_handle = handle;