mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
fixed a CI mode segfault, minor clean-ups
This commit is contained in:
parent
88c5ceb650
commit
b5fb4fd55b
1 changed files with 9 additions and 10 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
/* $Id: t_vb_lighttmp.h,v 1.4 2001/01/24 00:05:00 brianp Exp $ */
|
/* $Id: t_vb_lighttmp.h,v 1.5 2001/02/13 23:59:34 brianp Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 3.5
|
* Version: 3.5
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2000 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
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
@ -790,6 +790,7 @@ static void TAG(light_ci)( GLcontext *ctx,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
indexResult[0] = VB->IndexPtr[0]->data;
|
indexResult[0] = VB->IndexPtr[0]->data;
|
||||||
|
if (IDX & LIGHT_TWOSIDE)
|
||||||
indexResult[1] = VB->IndexPtr[1]->data;
|
indexResult[1] = VB->IndexPtr[1]->data;
|
||||||
|
|
||||||
if (IDX & LIGHT_COLORMATERIAL) {
|
if (IDX & LIGHT_COLORMATERIAL) {
|
||||||
|
|
@ -901,9 +902,7 @@ static void TAG(light_ci)( GLcontext *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
n_dot_h = correction * DOT3(normal, h);
|
n_dot_h = correction * DOT3(normal, h);
|
||||||
|
if (n_dot_h > 0.0F) {
|
||||||
if (n_dot_h > 0.0F)
|
|
||||||
{
|
|
||||||
GLfloat spec_coef;
|
GLfloat spec_coef;
|
||||||
struct gl_shine_tab *tab = ctx->_ShineTable[side];
|
struct gl_shine_tab *tab = ctx->_ShineTable[side];
|
||||||
GET_SHINE_TAB_ENTRY( tab, n_dot_h, spec_coef);
|
GET_SHINE_TAB_ENTRY( tab, n_dot_h, spec_coef);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue