Closed Bug 457694 Opened 16 years ago Closed 1 month ago

It's possible to compile targets without a gfx back-end

Categories

(Core Graveyard :: GFX, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: cwiiis, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.2) Gecko/2008092313 Ubuntu/8.04 (hardy) Firefox/3.0.2
Build Identifier: 

gfxPlatform::init in gfx/thebes/src/gfxPlatform.cpp has an #if/#elif block to initialise the platform, depending on which has been configured to build. It's possible for this block to fall through and not initialise a platform if none has been configured. In this case, the build will complete, but when running the target, it'll fail when trying to get the nsGfxFactory.

Most of the other #if/#elif blocks in the code have a final case that #error's out and stops things like this occuring. I suggest that this block should have one also.

Reproducible: Always
Product: Core → Core Graveyard
Status: UNCONFIRMED → RESOLVED
Closed: 1 month ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.