src/gui/egl/qegl.cpp
changeset 23 89e065397ea6
parent 18 2f34d5167611
child 29 b72c6db6890b
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
   329 
   329 
   330 // Query the value of a configuration attribute.
   330 // Query the value of a configuration attribute.
   331 bool QEglContext::configAttrib(int name, EGLint *value) const
   331 bool QEglContext::configAttrib(int name, EGLint *value) const
   332 {
   332 {
   333     return eglGetConfigAttrib(display(), cfg, name, value);
   333     return eglGetConfigAttrib(display(), cfg, name, value);
       
   334 }
       
   335 
       
   336 void QEglContext::clearError()
       
   337 {
       
   338     eglGetError();
       
   339 }
       
   340 
       
   341 EGLint QEglContext::error()
       
   342 {
       
   343     return eglGetError();
   334 }
   344 }
   335 
   345 
   336 // Retrieve all of the properties on "cfg".  If zero, return
   346 // Retrieve all of the properties on "cfg".  If zero, return
   337 // the context's configuration.
   347 // the context's configuration.
   338 QEglProperties QEglContext::configProperties(EGLConfig cfg) const
   348 QEglProperties QEglContext::configProperties(EGLConfig cfg) const