| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Mesa 3-D graphics library |
| Brian | a3c3bc9 | 2007-08-20 12:55:34 +0100 | [diff] [blame] | 3 | * Version: 7.1 |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 4 | * |
| Brian | 37ece4d | 2007-07-08 09:20:42 -0600 | [diff] [blame] | 5 | * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 6 | * |
| 7 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 8 | * copy of this software and associated documentation files (the "Software"), |
| 9 | * to deal in the Software without restriction, including without limitation |
| 10 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| 11 | * and/or sell copies of the Software, and to permit persons to whom the |
| 12 | * Software is furnished to do so, subject to the following conditions: |
| 13 | * |
| 14 | * The above copyright notice and this permission notice shall be included |
| 15 | * in all copies or substantial portions of the Software. |
| 16 | * |
| 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
| 20 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 21 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 22 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 23 | */ |
| 24 | |
| 25 | #include "glheader.h" |
| Brian Paul | 8446d1b | 2001-01-02 21:40:57 +0000 | [diff] [blame] | 26 | #include "api_validate.h" |
| Brian Paul | 434ec3a | 2009-08-12 13:46:16 -0600 | [diff] [blame] | 27 | #include "bufferobj.h" |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 28 | #include "context.h" |
| Brian Paul | 3c63452 | 2002-10-24 23:57:19 +0000 | [diff] [blame] | 29 | #include "imports.h" |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 30 | #include "mtypes.h" |
| Brian Paul | 8446d1b | 2001-01-02 21:40:57 +0000 | [diff] [blame] | 31 | #include "state.h" |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 32 | #include "vbo/vbo.h" |
| Keith Whitwell | 58e9917 | 2001-01-05 02:26:48 +0000 | [diff] [blame] | 33 | |
| Brian Paul | bb1fb2a | 2009-05-06 12:37:10 -0600 | [diff] [blame] | 34 | |
| 35 | /** |
| 36 | * \return number of bytes in array [count] of type. |
| 37 | */ |
| 38 | static GLsizei |
| 39 | index_bytes(GLenum type, GLsizei count) |
| 40 | { |
| 41 | if (type == GL_UNSIGNED_INT) { |
| 42 | return count * sizeof(GLuint); |
| 43 | } |
| 44 | else if (type == GL_UNSIGNED_BYTE) { |
| 45 | return count * sizeof(GLubyte); |
| 46 | } |
| 47 | else { |
| 48 | ASSERT(type == GL_UNSIGNED_SHORT); |
| 49 | return count * sizeof(GLushort); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 54 | /** |
| Brian Paul | b6e5600 | 2009-08-14 10:48:31 -0600 | [diff] [blame] | 55 | * Check if OK to draw arrays/elements. |
| Brian Paul | 88af3f8 | 2009-05-06 12:27:38 -0600 | [diff] [blame] | 56 | */ |
| Alan Hourihane | 263b96e | 2009-01-15 11:51:39 +0000 | [diff] [blame] | 57 | static GLboolean |
| Brian Paul | a48b0a5 | 2009-08-14 10:41:03 -0600 | [diff] [blame] | 58 | check_valid_to_render(GLcontext *ctx, const char *function) |
| Alan Hourihane | 263b96e | 2009-01-15 11:51:39 +0000 | [diff] [blame] | 59 | { |
| Brian Paul | b6e5600 | 2009-08-14 10:48:31 -0600 | [diff] [blame] | 60 | if (!_mesa_valid_to_render(ctx, function)) { |
| Alan Hourihane | 263b96e | 2009-01-15 11:51:39 +0000 | [diff] [blame] | 61 | return GL_FALSE; |
| 62 | } |
| 63 | |
| Brian Paul | 97dd2dd | 2009-03-02 12:27:16 -0700 | [diff] [blame] | 64 | #if FEATURE_es2_glsl |
| 65 | /* For ES2, we can draw if any vertex array is enabled (and we should |
| 66 | * always have a vertex program/shader). |
| 67 | */ |
| 68 | if (ctx->Array.ArrayObj->_Enabled == 0x0 || !ctx->VertexProgram._Current) |
| 69 | return GL_FALSE; |
| 70 | #else |
| 71 | /* For regular OpenGL, only draw if we have vertex positions (regardless |
| 72 | * of whether or not we have a vertex program/shader). |
| 73 | */ |
| 74 | if (!ctx->Array.ArrayObj->Vertex.Enabled && |
| Alan Hourihane | 263b96e | 2009-01-15 11:51:39 +0000 | [diff] [blame] | 75 | !ctx->Array.ArrayObj->VertexAttrib[0].Enabled) |
| 76 | return GL_FALSE; |
| Brian Paul | 97dd2dd | 2009-03-02 12:27:16 -0700 | [diff] [blame] | 77 | #endif |
| Alan Hourihane | 263b96e | 2009-01-15 11:51:39 +0000 | [diff] [blame] | 78 | |
| 79 | return GL_TRUE; |
| 80 | } |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 81 | |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 82 | static GLboolean |
| 83 | check_index_bounds(GLcontext *ctx, GLsizei count, GLenum type, |
| 84 | const GLvoid *indices, GLint basevertex) |
| 85 | { |
| 86 | struct _mesa_prim prim; |
| 87 | struct _mesa_index_buffer ib; |
| 88 | GLuint min, max; |
| 89 | |
| 90 | /* Only the X Server needs to do this -- otherwise, accessing outside |
| 91 | * array/BO bounds allows application termination. |
| 92 | */ |
| 93 | if (!ctx->Const.CheckArrayBounds) |
| 94 | return GL_TRUE; |
| 95 | |
| 96 | memset(&prim, 0, sizeof(prim)); |
| 97 | prim.count = count; |
| 98 | |
| 99 | memset(&ib, 0, sizeof(ib)); |
| 100 | ib.type = type; |
| 101 | ib.ptr = indices; |
| 102 | ib.obj = ctx->Array.ElementArrayBufferObj; |
| 103 | |
| 104 | vbo_get_minmax_index(ctx, &prim, &ib, &min, &max); |
| 105 | |
| 106 | if (min + basevertex < 0 || |
| 107 | max + basevertex > ctx->Array.ArrayObj->_MaxElement) { |
| 108 | /* the max element is out of bounds of one or more enabled arrays */ |
| 109 | _mesa_warning(ctx, "glDrawElements() index=%u is " |
| 110 | "out of bounds (max=%u)", max, ctx->Array.ArrayObj->_MaxElement); |
| 111 | return GL_FALSE; |
| 112 | } |
| 113 | |
| 114 | return GL_TRUE; |
| 115 | } |
| Brian Paul | 88af3f8 | 2009-05-06 12:27:38 -0600 | [diff] [blame] | 116 | |
| 117 | /** |
| 118 | * Error checking for glDrawElements(). Includes parameter checking |
| 119 | * and VBO bounds checking. |
| 120 | * \return GL_TRUE if OK to render, GL_FALSE if error found |
| 121 | */ |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 122 | GLboolean |
| 123 | _mesa_validate_DrawElements(GLcontext *ctx, |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 124 | GLenum mode, GLsizei count, GLenum type, |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 125 | const GLvoid *indices, GLint basevertex) |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 126 | { |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 127 | ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 128 | |
| 129 | if (count <= 0) { |
| 130 | if (count < 0) |
| Brian Paul | 0883634 | 2001-03-03 20:33:27 +0000 | [diff] [blame] | 131 | _mesa_error(ctx, GL_INVALID_VALUE, "glDrawElements(count)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 132 | return GL_FALSE; |
| 133 | } |
| 134 | |
| Brian Paul | 464bc3b | 2003-04-21 15:04:30 +0000 | [diff] [blame] | 135 | if (mode > GL_POLYGON) { |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 136 | _mesa_error(ctx, GL_INVALID_ENUM, "glDrawElements(mode)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 137 | return GL_FALSE; |
| 138 | } |
| 139 | |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 140 | if (type != GL_UNSIGNED_INT && |
| 141 | type != GL_UNSIGNED_BYTE && |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 142 | type != GL_UNSIGNED_SHORT) |
| 143 | { |
| Brian Paul | 0883634 | 2001-03-03 20:33:27 +0000 | [diff] [blame] | 144 | _mesa_error(ctx, GL_INVALID_ENUM, "glDrawElements(type)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 145 | return GL_FALSE; |
| 146 | } |
| 147 | |
| 148 | if (ctx->NewState) |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 149 | _mesa_update_state(ctx); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 150 | |
| Brian Paul | a48b0a5 | 2009-08-14 10:41:03 -0600 | [diff] [blame] | 151 | if (!check_valid_to_render(ctx, "glDrawElements")) |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 152 | return GL_FALSE; |
| 153 | |
| Brian Paul | 03e29a5 | 2003-12-04 03:16:27 +0000 | [diff] [blame] | 154 | /* Vertex buffer object tests */ |
| Brian Paul | 434ec3a | 2009-08-12 13:46:16 -0600 | [diff] [blame] | 155 | if (_mesa_is_bufferobj(ctx->Array.ElementArrayBufferObj)) { |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 156 | /* use indices in the buffer object */ |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 157 | /* make sure count doesn't go outside buffer bounds */ |
| Brian Paul | bb1fb2a | 2009-05-06 12:37:10 -0600 | [diff] [blame] | 158 | if (index_bytes(type, count) > ctx->Array.ElementArrayBufferObj->Size) { |
| Brian Paul | 03e29a5 | 2003-12-04 03:16:27 +0000 | [diff] [blame] | 159 | _mesa_warning(ctx, "glDrawElements index out of buffer bounds"); |
| 160 | return GL_FALSE; |
| 161 | } |
| Brian Paul | 03e29a5 | 2003-12-04 03:16:27 +0000 | [diff] [blame] | 162 | } |
| Brian | 37ece4d | 2007-07-08 09:20:42 -0600 | [diff] [blame] | 163 | else { |
| 164 | /* not using a VBO */ |
| 165 | if (!indices) |
| 166 | return GL_FALSE; |
| 167 | } |
| Brian Paul | 03e29a5 | 2003-12-04 03:16:27 +0000 | [diff] [blame] | 168 | |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 169 | if (!check_index_bounds(ctx, count, type, indices, basevertex)) |
| 170 | return GL_FALSE; |
| Xiang, Haihao | 2394d20 | 2007-07-30 23:50:52 +0800 | [diff] [blame] | 171 | |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 172 | return GL_TRUE; |
| 173 | } |
| 174 | |
| Brian Paul | 88af3f8 | 2009-05-06 12:27:38 -0600 | [diff] [blame] | 175 | |
| 176 | /** |
| 177 | * Error checking for glDrawRangeElements(). Includes parameter checking |
| 178 | * and VBO bounds checking. |
| 179 | * \return GL_TRUE if OK to render, GL_FALSE if error found |
| 180 | */ |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 181 | GLboolean |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 182 | _mesa_validate_DrawRangeElements(GLcontext *ctx, GLenum mode, |
| 183 | GLuint start, GLuint end, |
| 184 | GLsizei count, GLenum type, |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 185 | const GLvoid *indices, GLint basevertex) |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 186 | { |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 187 | ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 188 | |
| 189 | if (count <= 0) { |
| 190 | if (count < 0) |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 191 | _mesa_error(ctx, GL_INVALID_VALUE, "glDrawRangeElements(count)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 192 | return GL_FALSE; |
| 193 | } |
| 194 | |
| Brian Paul | 464bc3b | 2003-04-21 15:04:30 +0000 | [diff] [blame] | 195 | if (mode > GL_POLYGON) { |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 196 | _mesa_error(ctx, GL_INVALID_ENUM, "glDrawRangeElements(mode)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 197 | return GL_FALSE; |
| 198 | } |
| 199 | |
| 200 | if (end < start) { |
| Brian Paul | 0883634 | 2001-03-03 20:33:27 +0000 | [diff] [blame] | 201 | _mesa_error(ctx, GL_INVALID_VALUE, "glDrawRangeElements(end<start)"); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 202 | return GL_FALSE; |
| 203 | } |
| 204 | |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 205 | if (type != GL_UNSIGNED_INT && |
| 206 | type != GL_UNSIGNED_BYTE && |
| Brian Paul | 61bac60 | 2002-04-21 21:04:46 +0000 | [diff] [blame] | 207 | type != GL_UNSIGNED_SHORT) { |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 208 | _mesa_error(ctx, GL_INVALID_ENUM, "glDrawRangeElements(type)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 209 | return GL_FALSE; |
| 210 | } |
| 211 | |
| 212 | if (ctx->NewState) |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 213 | _mesa_update_state(ctx); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 214 | |
| Brian Paul | a48b0a5 | 2009-08-14 10:41:03 -0600 | [diff] [blame] | 215 | if (!check_valid_to_render(ctx, "glDrawRangeElements")) |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 216 | return GL_FALSE; |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 217 | |
| Brian | 37ece4d | 2007-07-08 09:20:42 -0600 | [diff] [blame] | 218 | /* Vertex buffer object tests */ |
| Brian Paul | 434ec3a | 2009-08-12 13:46:16 -0600 | [diff] [blame] | 219 | if (_mesa_is_bufferobj(ctx->Array.ElementArrayBufferObj)) { |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 220 | /* use indices in the buffer object */ |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 221 | /* make sure count doesn't go outside buffer bounds */ |
| Brian Paul | bb1fb2a | 2009-05-06 12:37:10 -0600 | [diff] [blame] | 222 | if (index_bytes(type, count) > ctx->Array.ElementArrayBufferObj->Size) { |
| Brian | ef5935b | 2007-09-23 13:56:46 -0600 | [diff] [blame] | 223 | _mesa_warning(ctx, "glDrawRangeElements index out of buffer bounds"); |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 224 | return GL_FALSE; |
| 225 | } |
| Brian | 37ece4d | 2007-07-08 09:20:42 -0600 | [diff] [blame] | 226 | } |
| 227 | else { |
| Brian | d8c6719 | 2007-08-20 13:12:20 +0100 | [diff] [blame] | 228 | /* not using a VBO */ |
| Brian | 37ece4d | 2007-07-08 09:20:42 -0600 | [diff] [blame] | 229 | if (!indices) |
| 230 | return GL_FALSE; |
| 231 | } |
| 232 | |
| Eric Anholt | 92d7ed8 | 2009-08-27 10:09:24 -0700 | [diff] [blame^] | 233 | if (!check_index_bounds(ctx, count, type, indices, basevertex)) |
| 234 | return GL_FALSE; |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 235 | |
| Brian Paul | c5b1e81 | 2003-10-22 22:59:07 +0000 | [diff] [blame] | 236 | return GL_TRUE; |
| 237 | } |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 238 | |
| Brian Paul | c5b1e81 | 2003-10-22 22:59:07 +0000 | [diff] [blame] | 239 | |
| 240 | /** |
| 241 | * Called from the tnl module to error check the function parameters and |
| 242 | * verify that we really can draw something. |
| Brian Paul | 88af3f8 | 2009-05-06 12:27:38 -0600 | [diff] [blame] | 243 | * \return GL_TRUE if OK to render, GL_FALSE if error found |
| Brian Paul | c5b1e81 | 2003-10-22 22:59:07 +0000 | [diff] [blame] | 244 | */ |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 245 | GLboolean |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 246 | _mesa_validate_DrawArrays(GLcontext *ctx, |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 247 | GLenum mode, GLint start, GLsizei count) |
| 248 | { |
| Gareth Hughes | 22144ab | 2001-03-12 00:48:37 +0000 | [diff] [blame] | 249 | ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 250 | |
| Brian | 5cb2034 | 2007-10-31 09:38:51 -0600 | [diff] [blame] | 251 | if (count <= 0) { |
| 252 | if (count < 0) |
| 253 | _mesa_error(ctx, GL_INVALID_VALUE, "glDrawArrays(count)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 254 | return GL_FALSE; |
| 255 | } |
| 256 | |
| Brian Paul | 464bc3b | 2003-04-21 15:04:30 +0000 | [diff] [blame] | 257 | if (mode > GL_POLYGON) { |
| Brian Paul | 0883634 | 2001-03-03 20:33:27 +0000 | [diff] [blame] | 258 | _mesa_error(ctx, GL_INVALID_ENUM, "glDrawArrays(mode)" ); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 259 | return GL_FALSE; |
| 260 | } |
| 261 | |
| 262 | if (ctx->NewState) |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 263 | _mesa_update_state(ctx); |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 264 | |
| Brian Paul | a48b0a5 | 2009-08-14 10:41:03 -0600 | [diff] [blame] | 265 | if (!check_valid_to_render(ctx, "glDrawArrays")) |
| Brian Paul | a2b9bad | 2003-11-10 19:08:37 +0000 | [diff] [blame] | 266 | return GL_FALSE; |
| 267 | |
| 268 | if (ctx->Const.CheckArrayBounds) { |
| Brian Paul | a185bcb | 2009-05-14 13:24:24 -0600 | [diff] [blame] | 269 | if (start + count > (GLint) ctx->Array.ArrayObj->_MaxElement) |
| Brian Paul | c5b1e81 | 2003-10-22 22:59:07 +0000 | [diff] [blame] | 270 | return GL_FALSE; |
| 271 | } |
| Brian Paul | c5b1e81 | 2003-10-22 22:59:07 +0000 | [diff] [blame] | 272 | |
| 273 | return GL_TRUE; |
| Keith Whitwell | cab974c | 2000-12-26 05:09:27 +0000 | [diff] [blame] | 274 | } |