initial texture object, texture format code

This commit is contained in:
Brian
2007-06-22 13:37:47 -06:00
parent 13682d959d
commit 5d69aeb002
7 changed files with 56 additions and 0 deletions

View File

@@ -43,7 +43,22 @@ softpipe_set_sampler_state(struct pipe_context *pipe,
{
struct softpipe_context *softpipe = softpipe_context(pipe);
assert(unit < PIPE_MAX_SAMPLERS);
softpipe->sampler[unit] = *sampler;
softpipe->dirty |= G_NEW_SAMPLER;
}
void
softpipe_set_texture_state(struct pipe_context *pipe,
GLuint unit,
struct pipe_texture_object *texture)
{
struct softpipe_context *softpipe = softpipe_context(pipe);
assert(unit < PIPE_MAX_SAMPLERS);
softpipe->texture[unit] = texture; /* ptr, not struct */
softpipe->dirty |= G_NEW_TEXTURE;
}