Skip to content

Commit

Permalink
Fixed: Materials prepared for the sky used the sprite texture class
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 27, 2012
1 parent f79ebfc commit f7766d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/r_sky.c
Expand Up @@ -128,7 +128,7 @@ static void calculateSkyAmbientColor(void)
*/
spec = Materials_VariantSpecificationForContext(MC_SKYSPHERE,
TSF_NO_COMPRESSION | ((slayer->flags & SLF_MASKED)? TSF_ZEROMASK : 0),
0, 0, 0, GL_REPEAT, GL_CLAMP_TO_EDGE, 1, -2, -1, false, true, false, false);
0, 0, 0, GL_REPEAT, GL_CLAMP_TO_EDGE, 0, -1, -1, false, true, false, false);
ms = Materials_Prepare(slayer->material, spec, false);

if(MSU_texture(ms, MTU_PRIMARY))
Expand Down
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/rend_sky.c
Expand Up @@ -269,7 +269,7 @@ static void configureRenderHemisphereStateForLayer(int layer, hemispherecap_t se

spec = Materials_VariantSpecificationForContext(MC_SKYSPHERE,
TSF_NO_COMPRESSION | (R_SkyLayerMasked(layer)? TSF_ZEROMASK : 0),
0, 0, 0, GL_REPEAT, GL_CLAMP_TO_EDGE, 1, -2, -1, false, true, false, false);
0, 0, 0, GL_REPEAT, GL_CLAMP_TO_EDGE, 0, -1, -1, false, true, false, false);
ms = Materials_Prepare(mat, spec, true);

rs.texSize.width = Texture_Width(MSU_texture(ms, MTU_PRIMARY));
Expand Down

0 comments on commit f7766d6

Please sign in to comment.