Skip to content

Instantly share code, notes, and snippets.

View LukasBoersma's full-sized avatar

Lukas Boersma LukasBoersma

View GitHub Profile
Stacktrace (Thread Heavies) :
Frame 0: threading::RealThread::run (C:\Users\Lukas\Desktop\Upvoid\genesis\src\Threading\RealThread.cc@35)
Stacktrace (Thread Heavies) :
Frame 0: threading::RealThread::run (C:\Users\Lukas\Desktop\Upvoid\genesis\src\Threading\RealThread.cc@35)
Stacktrace (Thread Immediates (Network)) :
Frame 0: threading::RealThread::run (C:\Users\Lukas\Desktop\Upvoid\genesis\src\Threading\RealThread.cc@35)
@LukasBoersma
LukasBoersma / MethodRental.cs
Created January 21, 2014 12:01
MethodRental
using System;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
public class Program
{
static ModuleBuilder modb;
static Type type;
@LukasBoersma
LukasBoersma / gist:8530193
Created January 20, 2014 22:07
HD4000 Bug
// Create a texture and bind it to two FBOs
GLuint textureName;
glGenTextures(1, &textureName);
glBindTexture(GL_TEXTURE_RECTANGLE, textureName);
glTexImage2D(GL_TEXTURE_RECTANGLE, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
GLuint fboNames[2];
glGenFramebuffers(2, fboNames);
glBindFramebuffer(GL_FRAMEBUFFER, fboNames[0]);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_RECTANGLE, textureName, 0);