Use RS API for checking isNull.

Change-Id: I840c2ac3d0fe478595f2a558b52a79886097c5b5
This commit is contained in:
Jason Sams
2010-08-13 12:18:01 -07:00
parent c28de51eed
commit f0d03e4e7f

View File

@@ -293,7 +293,7 @@ static void drawFrontGrid(float rowOffset, float p)
float x = colWidth * col + (colWidth / 2);
vpConstants->Position.x = x + 0.2f;
if (gSelectedIconIndex == iconNum && !p && gSelectedIconTexture.p) {
if (gSelectedIconIndex == iconNum && !p && rsIsObject(gSelectedIconTexture)) {
rsgBindProgramFragment(gPFTexNearest);
rsgBindTexture(gPFTexNearest, 0, gSelectedIconTexture);
vpConstants->ImgSize.x = rsAllocationGetDimX(gSelectedIconTexture);