Commit 894f76c5 by Tim Van Patten Committed by Commit Bot

Only Enable Pixmap Support for Unix (or compatible)

Only enable pixmap support for Unix (or compatible). Bug: angleproject:3159 Test: CQ Change-Id: I646ea89dfafa8816d318010fb454ba2bec49f2b1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1841614Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Tim Van Patten <timvp@google.com>
parent c40a21f3
...@@ -181,8 +181,8 @@ ANGLENativeDisplay::ANGLENativeDisplay(std::vector<EGLAttrib> attribs) ...@@ -181,8 +181,8 @@ ANGLENativeDisplay::ANGLENativeDisplay(std::vector<EGLAttrib> attribs)
NativePixmap::NativePixmap(EGLNativeDisplayType display, int width, int height, int bitDepth) NativePixmap::NativePixmap(EGLNativeDisplayType display, int width, int height, int bitDepth)
: eglu::NativePixmap(kBitmapCapabilities), mPixmap(CreateOSPixmap()) : eglu::NativePixmap(kBitmapCapabilities), mPixmap(CreateOSPixmap())
{ {
#if (DE_OS == DE_OS_ANDROID) #if (DE_OS != DE_OS_UNIX)
throw tcu::NotSupportedError("Pixmap not supported on Android"); throw tcu::NotSupportedError("Pixmap not supported");
#else #else
if (!mPixmap) if (!mPixmap)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment