From: Brian Paul Date: Tue, 16 Jan 2001 15:25:11 +0000 (+0000) Subject: fixed a small error in import_color(), include m_translate.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d292b83d1a98bffe3ad23d4468c3fd18bc892592;p=mesa.git fixed a small error in import_color(), include m_translate.h --- diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index e7fb795ef50..e6d7651170b 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -1,10 +1,10 @@ -/* $Id: ac_import.c,v 1.2 2000/12/28 22:11:05 keithw Exp $ */ +/* $Id: ac_import.c,v 1.3 2001/01/16 15:25:11 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.5 * - * Copyright (C) 1999 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2001 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"), @@ -34,6 +34,7 @@ #include "mtypes.h" #include "array_cache/ac_context.h" +#include "math/m_translate.h" @@ -282,7 +283,7 @@ static void import_color( GLcontext *ctx, to->Size = from->Size; to->StrideB = 4 * sizeof(GLubyte); - to->Type = GL_FLOAT; + to->Type = GL_UNSIGNED_BYTE; ac->Current.Color = to; ac->Writeable.Color = GL_TRUE; }