don't automatically do polygon smooth blending mode

This commit is contained in:
David Rose 2005-01-28 22:01:51 +00:00
parent 185fbf613e
commit b248ae9f04

View File

@ -4510,19 +4510,15 @@ set_blend_mode() {
return; return;
} }
if (_polygon_smooth_enabled && // For best polygon smoothing, we need:
(get_properties().get_frame_buffer_mode() & FrameBufferProperties::FM_alpha) != 0) { // (1) a frame buffer that supports alpha
// For polygon smoothing, we need this special kind of blending, // (2) sort polygons front-to-back
// but this only works if we have an alpha channel in the frame // (3) glBlendFunc(GL_SRC_ALPHA_SATURATE, GL_ONE);
// buffer. We should also sort the polygons front-to-back, but //
// that's the application's problem. // Since these modes have other implications for the application, we
enable_multisample_alpha_one(false); // don't attempt to do this by default. If you really want good
enable_multisample_alpha_mask(false); // polygon smoothing (and you don't have multisample support), do
enable_blend(true); // all this yourself.
_glBlendEquation(GL_FUNC_ADD);
GLP(BlendFunc)(GL_SRC_ALPHA_SATURATE, GL_ONE);
return;
}
// Nothing's set, so disable blending. // Nothing's set, so disable blending.
enable_multisample_alpha_one(false); enable_multisample_alpha_one(false);