}
if (cl_videosoundrate && (samples = S_RawSamples_QueueWantsMore()))
{
- Con_Printf("%i = S_RawSamples_QueueWantsMore()\n", samples);
+ Con_DPrintf("%i = S_RawSamples_QueueWantsMore()\n", samples);
// calculate how much source data we need to fill the output...
s = samples * cl_videosoundrate / S_RawSamples_SampleRate();
vertices[ 8] = x2;vertices[ 9] = y2;vertices[10] = 0;vertices[11] = 0;
vertices[12] = x1;vertices[13] = y2;vertices[14] = 0;vertices[15] = 0;
mesh.texture = cl_videotexture;
- mesh.numindices = 6;
+ mesh.numtriangles = 2;
mesh.numvertices = 4;
mesh.indices = indices;
mesh.vertices = vertices;
cl_videosoundresampledata = NULL;
cl_videotexturepool = R_AllocTexturePool();
- cl_videotexture = R_LoadTexture(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, TEXF_FRAGMENT);
+ cl_videotexture = R_LoadTexture2D(cl_videotexturepool, "videotexture", cl_videoimagewidth, cl_videoimageheight, NULL, TEXTYPE_RGBA, TEXF_FRAGMENT, NULL);
}
void CL_VideoStop(void)