OSX, fixed tabulation

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1772 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
mantognini 2011-01-20 21:52:27 +00:00
parent f9c4740894
commit 0a7b98dd0b
18 changed files with 1330 additions and 1332 deletions

View File

@ -49,7 +49,6 @@ RenderImageImplPBuffer::RenderImageImplPBuffer() :
////////////////////////////////////////////////////////////
RenderImageImplPBuffer::~RenderImageImplPBuffer()
{
if (myPBuffer && aglDestroyPBuffer(myPBuffer) == GL_FALSE) {
sf::Err()
<< "An error occurs while destroying the PBuffer in "
@ -101,6 +100,7 @@ bool RenderImageImplPBuffer::Create(unsigned int width, unsigned int height, uns
AGL_DEPTH_SIZE, (depthBuffer ? 24 : 0),
0
};
AGLPixelFormat pf = aglChoosePixelFormat(NULL, 0, attribs);
if (!pf) {
sf::Err()

View File

@ -129,7 +129,6 @@ bool RenderImageImplFBO::Activate(bool active)
////////////////////////////////////////////////////////////
void RenderImageImplFBO::UpdateTexture(unsigned int)
{
// Nothing to do: the FBO draws directly to the target image
glFlush();
}

View File

@ -79,10 +79,10 @@ SFContext::SFContext(SFContext* shared, const WindowImpl* owner,
SFContext::~SFContext()
{
[myContext release];
[myPool drain]; // [1]
[myPool drain]; // [A]
/*
[1] : Produce sometimes "*** attempt to pop an unknown autorelease pool"
[A] : Produce sometimes "*** attempt to pop an unknown autorelease pool"
*/
}

View File

@ -490,8 +490,7 @@ void WindowImplCocoa::EnableKeyRepeat(bool enabled)
////////////////////////////////////////////////////////////
void WindowImplCocoa::SetIcon(unsigned int width, unsigned int height,
const Uint8* pixels)
void WindowImplCocoa::SetIcon(unsigned int width, unsigned int height, const Uint8* pixels)
{
[myDelegate setIconTo:width by:height with:pixels];
}