File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,7 @@ macro_rules! program {
616
616
let __tessellation_evaluation_shader: Option <& str > = None ;
617
617
let __geometry_shader: Option <& str > = None ;
618
618
let __fragment_shader: & str = "" ;
619
- let __outputs_srgb: bool = false ;
619
+ let __outputs_srgb: bool = true ;
620
620
let __uses_point_size: bool = false ;
621
621
622
622
$(
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ pub enum ProgramCreationInput<'a> {
262
262
/// `None`, then you won't be able to use transform feedback.
263
263
transform_feedback_varyings : Option < ( Vec < String > , TransformFeedbackMode ) > ,
264
264
265
- /// Whether the fragment shader outputs colors in `sRGB` or `RGB`. This is false by default,
266
- /// meaning that the program outputs `RGB` .
265
+ /// Whether the fragment shader outputs colors in `sRGB` or `RGB`. This is true by default,
266
+ /// meaning that the program is responsible for outputting correct `sRGB` values .
267
267
///
268
268
/// If this is false, then `GL_FRAMEBUFFER_SRGB` will be enabled when this program is used
269
269
/// (if it is supported).
@@ -333,7 +333,7 @@ impl<'a> SpirvProgram<'a> {
333
333
tessellation_evaluation_shader : None ,
334
334
geometry_shader : None ,
335
335
transform_feedback_varyings : None ,
336
- outputs_srgb : false ,
336
+ outputs_srgb : true ,
337
337
uses_point_size : false ,
338
338
}
339
339
}
@@ -416,7 +416,7 @@ impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a> {
416
416
geometry_shader,
417
417
fragment_shader,
418
418
transform_feedback_varyings : None ,
419
- outputs_srgb : false ,
419
+ outputs_srgb : true ,
420
420
uses_point_size : false ,
421
421
}
422
422
}
@@ -436,7 +436,7 @@ impl<'a> From<Binary> for ProgramCreationInput<'a> {
436
436
fn from ( binary : Binary ) -> ProgramCreationInput < ' a > {
437
437
ProgramCreationInput :: Binary {
438
438
data : binary,
439
- outputs_srgb : false ,
439
+ outputs_srgb : true ,
440
440
uses_point_size : false ,
441
441
}
442
442
}
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ impl Program {
207
207
tessellation_control_shader : None ,
208
208
tessellation_evaluation_shader : None ,
209
209
transform_feedback_varyings : None ,
210
- outputs_srgb : false ,
210
+ outputs_srgb : true ,
211
211
uses_point_size : false ,
212
212
} )
213
213
}
You can’t perform that action at this time.
0 commit comments