//
// flushColorBuffer - The function makes sure that the
//    previous attached color buffer is updated, if copy or blit should be done
//    in order to update it - it is being done here.
//
bool WindowSurface::flushColorBuffer()
{
    if (m_attachedColorBuffer.Ptr() != NULL) {
        return blitToColorBuffer();
    }
    return true;
}
Ejemplo n.º 2
0
//
// flushColorBuffer - The function makes sure that the
//    previous attached color buffer is updated, if copy or blit should be done
//    in order to update it - it is being done here.
//
void WindowSurface::flushColorBuffer()
{
    if (m_attachedColorBuffer.Ptr() != NULL) {
        blitToColorBuffer();
    }
}