mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
total hack to help find a race.. must remove later
This commit is contained in:
parent
5dde973966
commit
f87df647a8
@ -14,6 +14,8 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#include <Cocoa/Cocoa.h>
|
#include <Cocoa/Cocoa.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
#include "osxGraphicsWindow.h"
|
#include "osxGraphicsWindow.h"
|
||||||
#include "config_osxdisplay.h"
|
#include "config_osxdisplay.h"
|
||||||
@ -29,6 +31,7 @@
|
|||||||
#include "virtualFileSystem.h"
|
#include "virtualFileSystem.h"
|
||||||
#include "config_util.h"
|
#include "config_util.h"
|
||||||
|
|
||||||
|
|
||||||
#include <OpenGL/gl.h>
|
#include <OpenGL/gl.h>
|
||||||
#include <AGL/agl.h>
|
#include <AGL/agl.h>
|
||||||
#include <ApplicationServices/ApplicationServices.h>
|
#include <ApplicationServices/ApplicationServices.h>
|
||||||
@ -952,6 +955,9 @@ bool osxGraphicsWindow::OSOpenWindow(WindowProperties &req_properties)
|
|||||||
// err = CPSSetFrontProcess(&PSN);
|
// err = CPSSetFrontProcess(&PSN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// total hack to help find a race.. must remove later
|
||||||
|
usleep( 1000000 * 2);
|
||||||
|
|
||||||
if (req_properties.has_fullscreen() && req_properties.get_fullscreen())
|
if (req_properties.has_fullscreen() && req_properties.get_fullscreen())
|
||||||
{
|
{
|
||||||
osxdisplay_cat.info() << "Creating full screen\n";
|
osxdisplay_cat.info() << "Creating full screen\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user