Skip to content

Instantly share code, notes, and snippets.

Merlyn Morgan-Graham kavika13

Block or report user

Report or block kavika13

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
@kavika13
kavika13 / trace-first-problematic-commit.txt
Created Aug 15, 2016
Trace of OpenGL calls on my machine
View trace-first-problematic-commit.txt
// 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);
@kavika13
kavika13 / Test.cs
Created Sep 15, 2012
Enum with base type counter-example
View Test.cs
using System;
static class Program
{
public static void Test<TEnum>()
where TEnum : struct
{
Console.WriteLine(typeof(TEnum).IsEnum);
}
You can’t perform that action at this time.