fixed broken build in texture binders caused by surface interface changes.
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 5 Dec 2011 14:39:09 +0000 (15:39 +0100)
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>
Mon, 5 Dec 2011 14:39:09 +0000 (15:39 +0100)
LayerManagerPlugins/Renderers/Graphic/src/TextureBinders/X11CopyGLX.cpp
LayerManagerPlugins/Renderers/Graphic/src/TextureBinders/X11TextureFromPixmap.cpp

index 272d3d5..e671291 100644 (file)
@@ -34,9 +34,9 @@ bool X11CopyGLX::bindSurfaceTexture(Surface* surface)
     {
         nativeSurface = (XPlatformSurface*)surface->platform;
     } 
-    if( nativeSurface != NULL && surface->nativeHandle != 0 ) 
+    if( nativeSurface != NULL && surface->getNativeContent() != 0 )
     {
-        pixmap = XCompositeNameWindowPixmap (dpy, surface->nativeHandle);
+        pixmap = XCompositeNameWindowPixmap (dpy, surface->getNativeContent());
         if (!pixmap)
         {
             LOG_ERROR("X11CopyGLX", "didnt create pixmap!");
index 058019e..1e11eab 100644 (file)
@@ -67,13 +67,13 @@ bool X11TextureFromPixmap::unbindSurfaceTexture(Surface* surface)
 }
 
 void X11TextureFromPixmap::createClientBuffer(Surface* surface){
-    LOG_DEBUG("X11TextureFromPixmap", "creating clientBuffer for window: " << surface->nativeHandle);
+    LOG_DEBUG("X11TextureFromPixmap", "creating clientBuffer for window: " << surface->getNativeContent());
     GLXPlatformSurface* platformSurface = (GLXPlatformSurface*)surface->platform;
     if (NULL!=platformSurface)
     {
         Pixmap pixmap = 0;
         LOG_DEBUG("X11TextureFromPixmap", "get X Pixmap");
-        pixmap= XCompositeNameWindowPixmap (dpy, surface->nativeHandle);
+        pixmap= XCompositeNameWindowPixmap (dpy, surface->getNativeContent());
         if (pixmap==0)
         {
             LOG_ERROR("X11TextureFromPixmap", "didnt create pixmap!");