diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/SkiaSDLExample.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/SkiaSDLExample.cpp b/example/SkiaSDLExample.cpp index 32c59f347c..4314296367 100644 --- a/example/SkiaSDLExample.cpp +++ b/example/SkiaSDLExample.cpp @@ -208,11 +208,12 @@ int main(int argc, char** argv) { info.fFBOID = (GrGLuint) buffer; SkColorType colorType; + //SkDebugf("%s", SDL_GetPixelFormatName(windowFormat)); + // TODO: the windowFormat is never any of these? if (SDL_PIXELFORMAT_RGBA8888 == windowFormat) { info.fFormat = GR_GL_RGBA8; colorType = kRGBA_8888_SkColorType; } else { - SkASSERT(SDL_PIXELFORMAT_BGRA8888); colorType = kBGRA_8888_SkColorType; if (SDL_GL_CONTEXT_PROFILE_ES == contextType) { info.fFormat = GR_GL_BGRA8; |