Skip to content

Instantly share code, notes, and snippets.

@pmslavin
pmslavin / sdl2_opengl.c
Last active December 27, 2015 14:49 — forked from exavolt/sdl2_opengl.c
/*
Fixed out-of-scope SDL_Renderer*. Now compiles with
$CC sdl2_opengl.c -o sdl2_opengl -lSDL2 -lGL -lGLU
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>