Anonymous's picture

Resharper - Bitwise operation on enum which is not marked by [Flags] attribute

Project:The Open Toolkit library
Version:0.9.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); is showing up a message that ClearBufferMask isn't marked with [FlagsAttribute], would it be possible to add this to any and all relevent enums, it makes a difference in debugging and aids code tidyness!

MSDN has more information.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sacro's picture

#1

This is my bug post, if I can figure out what needs altering I can attempt a diff myself for you!

the Fiddler's picture

#2

Status:open» confirmed

This is mainly a cosmetic issue, but should be relatively easy to fix through the generator.

the Fiddler's picture

#3

Version:all versions» 0.9.x-dev
Status:confirmed» fixed

Implemented in rev. 1733.

the Fiddler's picture

#4

Status:fixed» closed

Closing issues resolved in 0.9.8.