···288288 int floats_per_sprite = floats_per_vertex*4;
289289 float* sprite_values = (float*)malloc(sizeof(float)*maxSprites*floats_per_sprite);
290290291291- // FIXME: Need a better way to be sure of which shader is current.
291291+ // Load attributes for the textured shader
292292+ GPU_ActivateShaderProgram(screen->context->default_textured_shader_program, NULL);
292293 GPU_Attribute attributes[3] = {
293294 GPU_MakeAttribute(GPU_GetAttributeLocation(screen->context->current_shader_program, "gpu_Vertex"), sprite_values,
294295 GPU_MakeAttributeFormat(2, GPU_FLOAT, 0, floats_per_vertex*sizeof(float), 0)),