RobyDX/SharpDX_Demo

Font.UpdateResources fails in debug mode

Opened this issue · 0 comments

In the SharpDevice constructor, the creation flags are cleared when debug = true. This causes a failure with the Font because it requires BgraSupport

I changed this

        if (debug)
            flag = DeviceCreationFlags.Debug;

to this in SharpDevice()

        if (debug)
            flag |= DeviceCreationFlags.Debug;