mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-08 13:14:33 +00:00
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:
commit
aff033dd0d
1003 changed files with 53039 additions and 82707 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,8 +25,9 @@
|
|||
#include <SDL.h>
|
||||
#include <SDL_thread.h>
|
||||
|
||||
struct PlatformSemaphore
|
||||
class PlatformSemaphore
|
||||
{
|
||||
public:
|
||||
SDL_sem *semaphore;
|
||||
|
||||
PlatformSemaphore(S32 initialCount)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue