Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: src/mesa/swrast/s_span.c

Issue 27740005: Fix a bug with Multiple Render Targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/mesa/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mesa/swrast/s_span.c
===================================================================
--- src/mesa/swrast/s_span.c (revision 210110)
+++ src/mesa/swrast/s_span.c (working copy)
@@ -1330,8 +1330,8 @@
colorType == GL_FLOAT);
/* set span->array->rgba to colors for renderbuffer's datatype */
- if (span->array->ChanType != colorType) {
- convert_color_type(span, colorType, 0);
+ if (span->array->ChanType != colorType || multiFragOutputs) {
+ convert_color_type(span, colorType, buf);
}
else {
if (span->array->ChanType == GL_UNSIGNED_BYTE) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698