Skip to content

Instantly share code, notes, and snippets.

Jonas Kulla Ancurio

  • Cologne, Germany
Block or report user

Report or block Ancurio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View disable_nano.patch
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 7d3a4da..8782c56 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -340,7 +340,7 @@ struct FPSLimiter
void delayTicks(uint64_t ticks)
+#if defined(HAVE_NANOSLEEP) && !defined(_WIN32)
View nanosleep.patch
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 01e80c7..300bebb 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -34,6 +34,7 @@
#include "etc-internal.h"
#include "binding.h"
#include "perftimer.h"
+#include "debugwriter.h"
View non_mainthread_gl.c
#include <SDL.h>
#include <SDL_opengl.h>
typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
View apientry.patch
diff --git a/src/debuglogger.cpp b/src/debuglogger.cpp
index 4301bdd..768f05e 100644
--- a/src/debuglogger.cpp
+++ b/src/debuglogger.cpp
@@ -25,6 +25,10 @@
#include <glew.h>
#include <iostream>
+#ifndef APIENTRY
+#define APIENTRY
Ancurio / print_dec.patch
Created May 19, 2014
Print available asset decoders in mkxp
View print_dec.patch
diff --git a/src/debugwriter.h b/src/debugwriter.h
index 27244d1..c7b10ed 100644
--- a/src/debugwriter.h
+++ b/src/debugwriter.h
@@ -24,6 +24,7 @@
#include <iostream>
#include <sstream>
+#include <vector>
View gist:7401946
[tikilou@utopia ToTheMoon.amd64]$ ./ToTheMoon.amd64
GL Vendor : ATI Technologies Inc.
GL Renderer : AMD Radeon HD 7800 Series
GL Version : 4.3.12614 Compatibility Profile/Debug Context 12.104
GLSL Version : 4.30
--- Compiling SimpleShader
From: simple.vert simple.frag
--- Compiling SimpleColorShader
From: simpleColor.vert simpleColor.frag
--- Compiling SimpleAlphaShader
Ancurio / gist:5980534
Last active Dec 19, 2015
Steam hardware profile
View gist:5980534
Processor Information:
Vendor: GenuineIntel
Speed: 2534 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
You can’t perform that action at this time.