소스 검색

Unshaded.vert: put declaration in #ifdef to avoid an unused uniform

Stephen Gold 8 년 전
부모
커밋
dcb92e1d15
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      jme3-core/src/main/resources/Common/MatDefs/Misc/Unshaded.vert

+ 3 - 1
jme3-core/src/main/resources/Common/MatDefs/Misc/Unshaded.vert

@@ -16,7 +16,9 @@ varying vec2 texCoord1;
 varying vec2 texCoord2;
 
 varying vec4 vertColor;
-uniform float m_PointSize;
+#ifdef HAS_POINTSIZE
+    uniform float m_PointSize;
+#endif
 
 void main(){
     #ifdef NEED_TEXCOORD1