Skip to content

Instantly share code, notes, and snippets.

View kavika13's full-sized avatar

Merlyn Morgan-Graham kavika13

View GitHub Profile
@kavika13
kavika13 / Test.cs
Created September 15, 2012 05:18
Enum with base type counter-example
using System;
static class Program
{
public static void Test<TEnum>()
where TEnum : struct
{
Console.WriteLine(typeof(TEnum).IsEnum);
}
@kavika13
kavika13 / trace-first-problematic-commit.txt
Created August 15, 2016 04:27
Trace of OpenGL calls on my machine
// 2752bbcfb048054e27cef0005f39b6df8d68deda
CGLChoosePixelFormat({kCGLPFAClosestPolicy, kCGLPFADoubleBuffer, kCGLPFAAlphaSize, 8, kCGLPFADepthSize, 0, kCGLPFAStencilSize, 0, kCGLPFAOpenGLProfile, 4096}, 0x7fc299419920, 2);
CGLCreateContext(0x7fc299419920, 0x00000000, 0x7fc299813400);
glGetIntegerv(GL_MAJOR_VERSION, 0x7fff51e5affc);
glGetIntegerv(GL_MINOR_VERSION, 0x7fff51e5aff8);
glGetError(); returns: GL_INVALID_ENUM
glGetString(GL_VERSION);
CGLChoosePixelFormat({kCGLPFAClosestPolicy, kCGLPFADoubleBuffer, kCGLPFAAlphaSize, 8, kCGLPFADepthSize, 0, kCGLPFAStencilSize, 0, kCGLPFAOpenGLProfile, 4096}, 0x7fc299708cc0, 2);
CGLCreateContext(0x7fc299708cc0, 0x7fc299813400, 0x7fc29a817e00);
glGetIntegerv(GL_MAJOR_VERSION, 0x7fff51e5af6c);