Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#include <iostream>


#define USE_GPU_ENGINE 0
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = USE_GPU_ENGINE;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = USE_GPU_ENGINE;
#if defined(_WIN32) || defined(_WIN64)
extern "C" {
__declspec(dllexport) unsigned long NvOptimusEnablement = USE_GPU_ENGINE;
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = USE_GPU_ENGINE;
}
#endif


static void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods)
Expand Down
1 change: 1 addition & 0 deletions thirdparty/stb_image/include/stb_image/stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ RECENT REVISION HISTORY:
// very big.

#include <memory>
#include <cstring>

inline void *STBIMAGE_CUSTOM_REALOC(void *p, size_t oldSize, size_t newsz)
{
Expand Down