git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7724
d7cf8633-e32d-0410-b094-
e92efae38249
// unlink a texture handle from its name\r
void CL_UnlinkDynTexture( const char *name );\r
\r
-#endif
\ No newline at end of file
+#endif\r
+\r
\r
#endif\r
\r
-#endif
\ No newline at end of file
+#endif\r
+\r
return true;
}
-static void VideoUpdateCallback(rtexture_t *rt, clvideo_t *video) {
+static void VideoUpdateCallback(rtexture_t *rt, void *data) {
+ clvideo_t *video = data;
R_UpdateTexture( video->cpif.tex, (unsigned char *)video->imagedata, 0, 0, video->cpif.width, video->cpif.height );
}
case GLTEXTURETYPE_CUBEMAP:
// convert and upload each side in turn,
// from a continuous block of input texels
- texturebuffer = prevbuffer;
+ texturebuffer = (unsigned char *)prevbuffer;
for (i = 0;i < 6;i++)
{
prevbuffer = texturebuffer;