소스 검색

fixed segfault (NULL _ShineTable[0]) in shade_rastpos()

tags/mesa_4_0
Brian Paul 24 년 전
부모
커밋
ac54173414
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      src/mesa/main/rastpos.c

+ 4
- 1
src/mesa/main/rastpos.c 파일 보기

@@ -1,4 +1,4 @@
/* $Id: rastpos.c,v 1.28 2001/06/26 21:15:36 brianp Exp $ */
/* $Id: rastpos.c,v 1.29 2001/07/05 15:31:21 brianp Exp $ */

/*
* Mesa 3-D graphics library
@@ -131,6 +131,9 @@ shade_rastpos(GLcontext *ctx,
GLfloat diffuseColor[4], specularColor[4];
GLfloat diffuse = 0, specular = 0;

if (!ctx->_ShineTable[0] || !ctx->_ShineTable[1])
_mesa_validate_all_lighting_tables( ctx );

COPY_3V(diffuseColor, base[0]);
diffuseColor[3] = sumA[0];
ASSIGN_4V(specularColor, 0.0, 0.0, 0.0, 0.0);

Loading…
취소
저장