Closed Bug 896814 Opened 6 years ago Closed 6 years ago

GLContext add enum GLExtensionPackages

Categories

(Core :: Graphics, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: guillaume.abadie, Assigned: guillaume.abadie)

References

Details

Attachments

(1 file)

Add the following :
enum GLExtensionPackages {
    XXX_draw_instanced,
    ExtensionPackages_Max
};

This patern would introduce a new way to ask if a OpenGL feature is supported, regardless it is a vendor specific or ES extension.

Exemple :
if (IsExtensionSupported(XXX_draw_instanced))
instead of 
if (IsExtensionSupported(ARB_draw_instanced) ||
    IsExtensionSupported(EXT_draw_instanced) ||
    IsExtensionSupported(NV_draw_instanced))
Assignee: nobody → gabadie
Blocks: 892546
Attached patch patch revision 1Splinter Review
Attachment #779931 - Flags: review?(jgilbert)
Attachment #779931 - Flags: review?(jgilbert) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/590fc39b6a1c
Target Milestone: --- → mozilla25
Pushed with the wrong bug number, is the correct revision : https://hg.mozilla.org/integration/mozilla-inbound/rev/8e63acfcabfb
You need to log in before you can comment on or make changes to this bug.