Merge branch 'GarageGames/master' into ueberengine-dev

Conflicts:
	Engine/source/windowManager/sdl/sdlWindowMgr.cpp
	Tools/CMake/torque3d.cmake

3.10 final update
This commit is contained in:
Duion 2017-03-23 20:36:21 +01:00
commit aff033dd0d
1003 changed files with 53039 additions and 82707 deletions

View file

@ -6,6 +6,8 @@
#include "gfx/gl/tGL/tWGL.h"
#endif
#include "gfx/gl/gfxGLUtils.h"
namespace PlatformGL
{
@ -69,6 +71,9 @@ namespace PlatformGL
void setVSync(const int i)
{
PRESERVE_FRAMEBUFFER();
// Nvidia needs to have the default framebuffer bound or the vsync calls fail
glBindFramebuffer(GL_FRAMEBUFFER, 0);
if( i == 1 || i == -1 )
{
int ret = SDL_GL_SetSwapInterval(-1);
@ -78,6 +83,7 @@ namespace PlatformGL
}
else
SDL_GL_SetSwapInterval(0);
}
}

View file

@ -25,8 +25,9 @@
#include <SDL.h>
#include <SDL_thread.h>
struct PlatformSemaphore
class PlatformSemaphore
{
public:
SDL_sem *semaphore;
PlatformSemaphore(S32 initialCount)