diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-01-30 16:52:02 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-01-30 16:52:02 +0000 |
commit | eae38ca1b23cb78d0130d8b30d167a9d12b9f4b2 (patch) | |
tree | 76ca6152fccc284ba22b75593509d62e25f1bb1b | |
parent | 6e1666437ea091ecc50ab2b56d87129318f641d2 (diff) | |
download | external_mesa3d-eae38ca1b23cb78d0130d8b30d167a9d12b9f4b2.zip external_mesa3d-eae38ca1b23cb78d0130d8b30d167a9d12b9f4b2.tar.gz external_mesa3d-eae38ca1b23cb78d0130d8b30d167a9d12b9f4b2.tar.bz2 |
replace GLushort w/ GLubyte in DEST_4US template (fixes 16-bit GLchan problem
-rw-r--r-- | src/mesa/math/m_trans_tmp.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/math/m_trans_tmp.h b/src/mesa/math/m_trans_tmp.h index f182f6f..9020bca 100644 --- a/src/mesa/math/m_trans_tmp.h +++ b/src/mesa/math/m_trans_tmp.h @@ -1,10 +1,10 @@ -/* $Id: m_trans_tmp.h,v 1.6 2001/08/07 22:16:06 brianp Exp $ */ +/* $Id: m_trans_tmp.h,v 1.7 2002/01/30 16:52:02 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.5 + * Version: 4.0.2 * - * 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"), @@ -132,8 +132,8 @@ static void DEST_4US( GLushort (*t)[4], GLuint stride, ARGS ) { - const GLushort *f = (GLushort *) ptr + SRC_START * stride; - const GLushort *first = f; + const GLubyte *f = (GLubyte *) ((GLubyte *) ptr + SRC_START * stride); + const GLubyte *first = f; GLuint i; (void) start; (void) first; |