-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- removed inclusion of config*.h - use Sleep instead of usleep - subsequent improves in gl_common.h (removed config*.h)
- Loading branch information
1 parent
1867c0c
commit 687bcfb
Showing
2 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* @author Martin Pulec <[email protected]> | ||
*/ | ||
/* | ||
* Copyright (c) 2012-2013 CESNET, z. s. p. o. | ||
* Copyright (c) 2012-2023 CESNET, z. s. p. o. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
|
@@ -38,27 +38,21 @@ | |
#ifndef _GL_CONTEXT_H_ | ||
#define _GL_CONTEXT_H_ | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include "config.h" | ||
#include "config_win32.h" | ||
#include "config_unix.h" | ||
#endif // HAVE_CONFIG_H | ||
|
||
#if defined HAVE_LINUX || defined WIN32 | ||
#if defined __linux__ || defined _WIN32 | ||
#include <GL/glew.h> | ||
#else | ||
#include <OpenGL/GL.h> | ||
#endif /* HAVE_LINUX */ | ||
|
||
#ifdef HAVE_MACOSX | ||
#ifdef __APPLE__ | ||
#include <Availability.h> | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
#if defined HAVE_MACOSX && ! defined __MAC_10_8 | ||
#if defined __APPLE__ && ! defined __MAC_10_8 | ||
#define glGenFramebuffers glGenFramebuffersEXT | ||
#define glBindFramebuffer glBindFramebufferEXT | ||
#define GL_FRAMEBUFFER GL_FRAMEBUFFER_EXT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters