1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Routines for drawing samples using depth buffer checks. |
6 |
|
*/ |
7 |
|
|
8 |
|
#include "standard.h" |
9 |
|
|
13 |
– |
#include <sys/types.h> |
10 |
|
#include <GL/glx.h> |
11 |
|
#include <GL/glu.h> |
12 |
|
|
58 |
|
|
59 |
|
if (odNViews > 0) { /* deallocate view structures */ |
60 |
|
for (i = odNViews; i--; ) { |
61 |
< |
free((char *)odView[i].bmap); |
62 |
< |
free((char *)odView[i].pmap); |
61 |
> |
free((void *)odView[i].bmap); |
62 |
> |
free((void *)odView[i].pmap); |
63 |
|
if (odView[i].emap != NULL) |
64 |
< |
free((char *)odView[i].emap); |
64 |
> |
free((void *)odView[i].emap); |
65 |
|
} |
66 |
< |
free((char *)odView); |
66 |
> |
free((void *)odView); |
67 |
|
odView = NULL; |
68 |
|
odNViews = 0; |
69 |
|
} |
378 |
|
if (vn<0 | vn>=odNViews) |
379 |
|
return; /* too late -- they're gone! */ |
380 |
|
if (odView[vn].emap != NULL) |
381 |
< |
free((char *)odView[vn].emap); |
381 |
> |
free((void *)odView[vn].emap); |
382 |
|
odView[vn].emap = NULL; |
383 |
|
odView[vn].dmap = NULL; |
384 |
|
return; |