File: gli_misc.c

package info (click to toggle)
nvidia-cg-toolkit 3.1.0013-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 187,516 kB
  • sloc: ansic: 510,168; cpp: 34,693; makefile: 745
file content (23 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

/* gli_misc.c - OpenGL image (GLI) miscellaneous routines */

/* Copyright NVIDIA Corporation, 2006. */

/* A lightweight generic image file loader for OpenGL programs. */

#include <stdlib.h>

#include "gli.h"

void
gliFree(gliGenericImage *image)
{
  if (image->pixels) {
    free(image->pixels);
  }
  if (image->cmap) {
    free(image->cmap);
  }
  free(image);
}