GLXWindow glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list)
| 1261 | |
| 1262 | // GLXWindow glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list) |
| 1263 | void gl_common_XCreateWindow(CPU* cpu) { |
| 1264 | KThread* thread = cpu->thread; |
| 1265 | XServer* server = XServer::getServer(); |
| 1266 | CLXFBConfigPtr cfg = server->getFbConfig(ARG2); |
| 1267 | XWindowPtr win = server->getWindow(ARG3); |
| 1268 | if (!cfg || !win) { |
| 1269 | EAX = 0; |
| 1270 | return; |
| 1271 | } |
| 1272 | if (ARG4) { |
| 1273 | // not set by wine |
| 1274 | kpanic("gl_common_XCreateWindow attrib_list not implemented"); |
| 1275 | } |
| 1276 | win->isOpenGL = true; |
| 1277 | KNativeSystem::getOpenGL()->glCreateWindow(thread, win, cfg); |
| 1278 | EAX = win->id; |
| 1279 | } |
| 1280 | |
| 1281 | // void glXDestroyWindow(Display* dpy, GLXWindow win) |
| 1282 | void gl_common_XDestroyWindow(CPU* cpu) { |
nothing calls this directly
no test coverage detected