MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / gl_common_XCreateWindow

Function gl_common_XCreateWindow

source/opengl/glcommon.cpp:1263–1279  ·  view source on GitHub ↗

GLXWindow glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list)

Source from the content-addressed store, hash-verified

1261
1262// GLXWindow glXCreateWindow(Display* dpy, GLXFBConfig config, Window win, const int* attrib_list)
1263void 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)
1282void gl_common_XDestroyWindow(CPU* cpu) {

Callers

nothing calls this directly

Calls 4

kpanicFunction · 0.85
getFbConfigMethod · 0.80
getWindowMethod · 0.80
glCreateWindowMethod · 0.45

Tested by

no test coverage detected