mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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:
parent
f9c4740894
commit
0a7b98dd0b
@ -49,7 +49,6 @@ RenderImageImplPBuffer::RenderImageImplPBuffer() :
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
RenderImageImplPBuffer::~RenderImageImplPBuffer()
|
RenderImageImplPBuffer::~RenderImageImplPBuffer()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (myPBuffer && aglDestroyPBuffer(myPBuffer) == GL_FALSE) {
|
if (myPBuffer && aglDestroyPBuffer(myPBuffer) == GL_FALSE) {
|
||||||
sf::Err()
|
sf::Err()
|
||||||
<< "An error occurs while destroying the PBuffer in "
|
<< "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),
|
AGL_DEPTH_SIZE, (depthBuffer ? 24 : 0),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
AGLPixelFormat pf = aglChoosePixelFormat(NULL, 0, attribs);
|
AGLPixelFormat pf = aglChoosePixelFormat(NULL, 0, attribs);
|
||||||
if (!pf) {
|
if (!pf) {
|
||||||
sf::Err()
|
sf::Err()
|
||||||
|
@ -129,7 +129,6 @@ bool RenderImageImplFBO::Activate(bool active)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void RenderImageImplFBO::UpdateTexture(unsigned int)
|
void RenderImageImplFBO::UpdateTexture(unsigned int)
|
||||||
{
|
{
|
||||||
// Nothing to do: the FBO draws directly to the target image
|
|
||||||
glFlush();
|
glFlush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,10 +79,10 @@ SFContext::SFContext(SFContext* shared, const WindowImpl* owner,
|
|||||||
SFContext::~SFContext()
|
SFContext::~SFContext()
|
||||||
{
|
{
|
||||||
[myContext release];
|
[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"
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -490,8 +490,7 @@ void WindowImplCocoa::EnableKeyRepeat(bool enabled)
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void WindowImplCocoa::SetIcon(unsigned int width, unsigned int height,
|
void WindowImplCocoa::SetIcon(unsigned int width, unsigned int height, const Uint8* pixels)
|
||||||
const Uint8* pixels)
|
|
||||||
{
|
{
|
||||||
[myDelegate setIconTo:width by:height with:pixels];
|
[myDelegate setIconTo:width by:height with:pixels];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user