]> Pileus Git - grits/blobdiff - src/objects/grits-marker.c
Move OpenGL includes to a common place
[grits] / src / objects / grits-marker.c
index 497c77c251fb6b14ed40d102afd779f29a3c7440..3946775d22932dc593d75bca547f80f1f562884b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@
  */
 
 #include <config.h>
-#include <GL/gl.h>
+#include "gtkgl.h"
 #include "grits-marker.h"
 
 /**
@@ -152,6 +152,7 @@ static void grits_marker_finalize(GObject *_marker)
        cairo_surface_destroy(surface);
        cairo_destroy(marker->cairo);
        g_free(marker->label);
+       glDeleteTextures(1, &marker->tex);
 }
 
 static void grits_marker_class_init(GritsMarkerClass *klass)