void X11Helper::createOffScreenWindow(uint32_t* handleId, const XVisualInfo& visInfo, const IntSize& size)
{
-#if USE(GRAPHICS_SURFACE)
+#if USE(GRAPHICS_SURFACE) && USE(GLX)
Display* display = nativeDisplay();
if (!display)
return;
if (matchingVisuals) {
for (int i = 0; i< matchingCount; i++) {
XVisualInfo* temp = &matchingVisuals[i];
-
- if (isXRenderExtensionSupported()) {
- XRenderPictFormat* format = XRenderFindVisualFormat(nativeDisplay(), temp->visual);
-
- if (format) {
- if (supportsAlpha) {
- if (temp->depth == 32 && format->direct.alphaMask > 0)
- foundVisual = temp;
- } else if (!format->direct.alphaMask)
- foundVisual = temp;
- }
-
- if (foundVisual)
- break;
- }
-
int matchingdepth = supportsAlpha ? 32 : 24;
if (temp->depth == matchingdepth) {
if (!queryDone) {
queryDone = true;
-#if USE(GRAPHICS_SURFACE)
+#if USE(GRAPHICS_SURFACE) && USE(GLX)
Display* display = nativeDisplay();
if (display) {
}
}
+