aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/state_tracker/st_cb_texture.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-09-16 08:36:51 +0200
committermarha <marha@users.sourceforge.net>2011-09-16 08:36:51 +0200
commit18ae1470a8dbcfe369ddf0d7e17e0ea665251ccd (patch)
treeecf208df0badb85d34d35990d9194b5182411a10 /mesalib/src/mesa/state_tracker/st_cb_texture.c
parent4420369d700d9db1563f8647e1889c6a0972ea2c (diff)
downloadvcxsrv-18ae1470a8dbcfe369ddf0d7e17e0ea665251ccd.tar.gz
vcxsrv-18ae1470a8dbcfe369ddf0d7e17e0ea665251ccd.tar.bz2
vcxsrv-18ae1470a8dbcfe369ddf0d7e17e0ea665251ccd.zip
git update libXext libXdmcp mesa xkeyboard-config 16 sep 2011
X11/extensions: removed files that are in multiple extension modules
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_cb_texture.c')
-rw-r--r--mesalib/src/mesa/state_tracker/st_cb_texture.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_cb_texture.c b/mesalib/src/mesa/state_tracker/st_cb_texture.c
index e4be7fba4..eab02fb3b 100644
--- a/mesalib/src/mesa/state_tracker/st_cb_texture.c
+++ b/mesalib/src/mesa/state_tracker/st_cb_texture.c
@@ -1829,9 +1829,10 @@ st_finalize_texture(struct gl_context *ctx,
/* Need to import images in main memory or held in other textures.
*/
if (stImage && stObj->pt != stImage->pt) {
- if (level == 0 || (stImage->base.Width == u_minify(stObj->width0, level) &&
- stImage->base.Height == u_minify(stObj->height0, level) &&
- stImage->base.Depth == u_minify(stObj->depth0, level))) {
+ if (level == 0 ||
+ (stImage->base.Width == u_minify(stObj->width0, level) &&
+ stImage->base.Height == u_minify(stObj->height0, level) &&
+ stImage->base.Depth == u_minify(stObj->depth0, level))) {
/* src image fits expected dest mipmap level size */
copy_image_data_to_texture(st, stObj, level, stImage);
}