diff options
author | Brian Paul <[email protected]> | 2013-10-17 09:28:17 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-10-17 09:28:17 -0600 |
commit | 282bb87366fec99eff6d8cf0d0d2eb92072eab53 (patch) | |
tree | a7af82cdad8b6118134c9d93caba367fa682ac9a /src | |
parent | 530afc82a117f5318820189db5fcd4bdad97f829 (diff) |
st/mesa: add a few comments in st_create_context_priv()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index 80393cff7f8..4e0d98cc3b0 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -125,6 +125,9 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe, st->dirty.mesa = ~0; st->dirty.st = ~0; + /* Create upload manager for vertex data for glBitmap, glDrawPixels, + * glClear, etc. + */ st->uploader = u_upload_create(st->pipe, 65536, 4, PIPE_BIND_VERTEX_BUFFER); if (!screen->get_param(screen, PIPE_CAP_USER_INDEX_BUFFERS)) { @@ -148,7 +151,8 @@ st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe, st_init_draw( st ); st_init_generate_mipmap(st); - if(pipe->screen->get_param(pipe->screen, PIPE_CAP_NPOT_TEXTURES)) + /* Choose texture target for glDrawPixels, glBitmap, renderbuffers */ + if (pipe->screen->get_param(pipe->screen, PIPE_CAP_NPOT_TEXTURES)) st->internal_target = PIPE_TEXTURE_2D; else st->internal_target = PIPE_TEXTURE_RECT; |