oopsie. fix.

SVN revision: 51071
This commit is contained in:
Carsten Haitzler 2010-08-13 10:39:41 +00:00
parent 2d3ea36109
commit 26911649be
1 changed files with 2 additions and 2 deletions

View File

@ -1776,7 +1776,7 @@ eng_image_data_get(void *data, void *image, int to_write, DATA32 **image_data)
*image_data = NULL;
return im;
}
if (im->tex->pt->dyn.data)
if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data))
{
*image_data = im->tex->pt->dyn.data;
return im;
@ -1830,7 +1830,7 @@ eng_image_data_put(void *data, void *image, DATA32 *image_data)
im = image;
if (im->native.data) return image;
eng_window_use(re->win);
if (im->tex->pt->dyn.data)
if ((im->tex) && (im->tex->pt) && (im->tex->pt->dyn.data))
{
if (im->tex->pt->dyn.data == image_data)
{