libsgl: glexTex: Fix compilation warnings

Last commit introduced compilation warnings about comparison of signed
and unsigned types and unused variable.

This patch fixes those warnings. No functional change is made.

Change-Id: I5a0ef6606f13013b50429003c9bdf656afa95ada
Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>