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
This commit is contained in:
laurentgom 2011-03-21 09:12:09 +00:00
parent ccc2a050ed
commit 58546a52df

View File

@ -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]);