From 58546a52df4867207a1f43f770c92c0a31aa410b Mon Sep 17 00:00:00 2001 From: laurentgom Date: Mon, 21 Mar 2011 09:12:09 +0000 Subject: [PATCH] Removed warnings in the Linux implementation of RenderImageImplPBuffer git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1811 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Graphics/Linux/RenderImageImplPBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Graphics/Linux/RenderImageImplPBuffer.cpp b/src/SFML/Graphics/Linux/RenderImageImplPBuffer.cpp index e68d14ae..279a8037 100644 --- a/src/SFML/Graphics/Linux/RenderImageImplPBuffer.cpp +++ b/src/SFML/Graphics/Linux/RenderImageImplPBuffer.cpp @@ -37,7 +37,7 @@ namespace priv { //////////////////////////////////////////////////////////// RenderImageImplPBuffer::RenderImageImplPBuffer() : -myPBuffer(NULL), +myPBuffer(0), myContext(NULL), myWidth (0), myHeight (0) @@ -135,7 +135,7 @@ bool RenderImageImplPBuffer::Create(unsigned int width, unsigned int height, uns GLXDrawable currentDrawable = glXGetCurrentDrawable(); GLXContext currentContext = glXGetCurrentContext(); if (currentContext) - glXMakeCurrent(myDisplay, NULL, NULL); + glXMakeCurrent(myDisplay, 0, NULL); // Create the context XVisualInfo* visual = glXGetVisualFromFBConfig(myDisplay, configs[0]);