added another test in regions_overlap() (Klaus)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2002 16:04:50 +0000 (16:04 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Jan 2002 16:04:50 +0000 (16:04 +0000)
src/mesa/swrast/s_copypix.c

index d2d93a9..7ed59ab 100644 (file)
@@ -1,10 +1,10 @@
-/* $Id: s_copypix.c,v 1.27 2002/01/10 16:54:29 brianp Exp $ */
+/* $Id: s_copypix.c,v 1.28 2002/01/16 16:04:50 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  3.5
+ * Version:  4.1
  *
- * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
+ * Copyright (C) 1999-2002  Brian Paul   All Rights Reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -67,6 +67,9 @@ regions_overlap(GLint srcx, GLint srcy,
       else if (srcy < dsty) { /* this is OK */
          return GL_FALSE;
       }
+      else if (srcy > dsty + height) {
+         return GL_FALSE;
+      }
       else {
          return GL_TRUE;
       }