{EGL_MAX_SWAP_INTERVAL, "EGL_MAX_SWAP_INTERVAL"},
{-1, 0}};
-void q_printEglConfig(EGLConfig config)
+void q_printEglConfig(EGLDisplay display, EGLConfig config)
{
EGLint index;
for (index = 0; attrs[index].attr != -1; ++index) {
EGLint value;
- if (eglGetConfigAttrib(m_dpy, config, attrs[index].attr, &value)) {
+ if (eglGetConfigAttrib(display, config, attrs[index].attr, &value)) {
qWarning("\t%s: %d\n", attrs[index].name, (int)value);
}
}
EGLConfig q_configFromGLFormat(EGLDisplay display, const QSurfaceFormat &format, bool highestPixelFormat = false, int surfaceType = EGL_WINDOW_BIT);
QSurfaceFormat q_glFormatFromConfig(EGLDisplay display, const EGLConfig config);
bool q_hasEglExtension(EGLDisplay display,const char* extensionName);
-void q_printEglConfig(EGLConfig config);
+void q_printEglConfig(EGLDisplay display, EGLConfig config);
QT_END_NAMESPACE
m_window = hooks->createNativeWindow(hooks->screenSize());
#ifdef QEGL_EXTRA_DEBUG
- qWarning("Configuration %d matches requirements\n", (int)config);
- q_printEglConfig(config);
+ q_printEglConfig(m_dpy, config);
#endif
m_surface = eglCreateWindowSurface(m_dpy, config, m_window, NULL);