Closed Bug 1004702 Opened 10 years ago Closed 10 years ago

Use KHR_debug in DebugMode(), when available

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: jgilbert, Assigned: jgilbert)

Details

Attachments

(2 files, 1 obsolete file)

We added support for KHR_debug in bug 910429, but haven't done anything in the tree with it. We should lean on it for at least DebugMode() runs.
Attached patch use-khr-debugSplinter Review
Assignee: nobody → jgilbert
Attachment #8416115 - Flags: review?(bjacob)
Comment on attachment 8416115 [details] [diff] [review]
use-khr-debug

Review of attachment 8416115 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/gl/GLContext.cpp
@@ +1227,5 @@
> +    case LOCAL_GL_DEBUG_SOURCE_OTHER:
> +        sourceStr = "SOURCE_OTHER";
> +        break;
> +    default:
> +        sprintf(sourceBuffer, "<source 0x%04x>", source);

Instead of the relatively unsafe sprintf, or the safer but still bug-prone PR_snprintf, please use a nsPrintfCString or whatever it's called.
Attachment #8416115 - Flags: review?(bjacob) → review+
Attached patch use-khr-debug (obsolete) — Splinter Review
r=bjacob
Attachment #8416757 - Flags: review+
Attached patch for landingSplinter Review
r=bjacob
Needed to use GLAPIENTRY for StaticDebugCallback on Windows.
Attachment #8416757 - Attachment is obsolete: true
Attachment #8418308 - Flags: review+
Attachment #8418308 - Attachment description: use-khr-debug → for landing
https://hg.mozilla.org/mozilla-central/rev/46a5bfb1fab7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: