Fixed broken point sprites problem caused by the fix for mesh files without texture coordinates.

ver1_6_1
Chris Laurel 2009-03-18 18:44:38 +00:00
parent 659f643456
commit 14e32a5a61
1 changed files with 2 additions and 2 deletions

View File

@ -596,7 +596,7 @@ GLSL_RenderContext::makeCurrent(const Mesh::Material& m)
shaderProps.lightModel = ShaderProperties::ParticleDiffuseModel;
}
if (m.maps[Mesh::DiffuseMap] != InvalidResource && useTexCoords)
if (m.maps[Mesh::DiffuseMap] != InvalidResource && (useTexCoords || usePointSize))
{
baseTex = GetTextureManager()->find(m.maps[Mesh::DiffuseMap]);
if (baseTex != NULL)
@ -834,7 +834,7 @@ GLSLUnlit_RenderContext::makeCurrent(const Mesh::Material& m)
shaderProps.lightModel = ShaderProperties::EmissiveModel;
shaderProps.texUsage = ShaderProperties::SharedTextureCoords;
if (m.maps[Mesh::DiffuseMap] != InvalidResource && useTexCoords)
if (m.maps[Mesh::DiffuseMap] != InvalidResource && (useTexCoords || usePointSize))
{
baseTex = GetTextureManager()->find(m.maps[Mesh::DiffuseMap]);
if (baseTex != NULL)