diff options
author | marha <marha@users.sourceforge.net> | 2011-01-13 22:01:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-01-13 22:01:27 +0000 |
commit | a0a46bd55d7cbbf70757a29c067e21b70ac4e2df (patch) | |
tree | 95803181a66e63d191b3fe06a031f9ed8ae701b8 /mesalib/src/mesa/state_tracker | |
parent | 2ebdcfeee38bed8c65daa78aa7d18d8d1d93ed85 (diff) | |
download | vcxsrv-a0a46bd55d7cbbf70757a29c067e21b70ac4e2df.tar.gz vcxsrv-a0a46bd55d7cbbf70757a29c067e21b70ac4e2df.tar.bz2 vcxsrv-a0a46bd55d7cbbf70757a29c067e21b70ac4e2df.zip |
mesalib pixman xkbcomp git update 13 jan 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker')
-rw-r--r-- | mesalib/src/mesa/state_tracker/st_cb_queryobj.c | 2 | ||||
-rw-r--r-- | mesalib/src/mesa/state_tracker/st_cb_texture.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_queryobj.c b/mesalib/src/mesa/state_tracker/st_cb_queryobj.c index 5b9e648d0..1efcaf593 100644 --- a/mesalib/src/mesa/state_tracker/st_cb_queryobj.c +++ b/mesalib/src/mesa/state_tracker/st_cb_queryobj.c @@ -85,6 +85,8 @@ st_BeginQuery(struct gl_context *ctx, struct gl_query_object *q) /* convert GL query type to Gallium query type */
switch (q->Target) {
+ case GL_ANY_SAMPLES_PASSED:
+ /* fall-through */
case GL_SAMPLES_PASSED_ARB:
type = PIPE_QUERY_OCCLUSION_COUNTER;
break;
diff --git a/mesalib/src/mesa/state_tracker/st_cb_texture.c b/mesalib/src/mesa/state_tracker/st_cb_texture.c index 8373b8ee5..000765f2e 100644 --- a/mesalib/src/mesa/state_tracker/st_cb_texture.c +++ b/mesalib/src/mesa/state_tracker/st_cb_texture.c @@ -1858,9 +1858,8 @@ st_finalize_texture(struct gl_context *ctx, * will match.
*/
if (firstImage->pt &&
- stObj->pt &&
firstImage->pt != stObj->pt &&
- firstImage->pt->last_level >= stObj->pt->last_level) {
+ (!stObj->pt || firstImage->pt->last_level >= stObj->pt->last_level)) {
pipe_resource_reference(&stObj->pt, firstImage->pt);
pipe_sampler_view_reference(&stObj->sampler_view, NULL);
}
|