Index: shader.c
===================================================================
--- shader.c	(revision 584)
+++ shader.c	(revision 585)
@@ -372,7 +372,7 @@
     raydium_log("shader: cannot attach shader: Invalid shader");
     return 0;
     }
-if(texture<=0 || texture>=raydium_texture_index)
+if(texture<=0 || texture>=(int)raydium_texture_index)
     {
     raydium_log("shader: cannot attach shader: Invalid texture");
     return 0;