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)
NativePixmap::NativePixmap(EGLNativeDisplayType display, int width, int height, int bitDepth)
: eglu::NativePixmap(kBitmapCapabilities), mPixmap(CreateOSPixmap())
{
#if (DE_OS == DE_OS_ANDROID)
throw tcu::NotSupportedError("Pixmap not supported on Android");
#if (DE_OS != DE_OS_UNIX)
throw tcu::NotSupportedError("Pixmap not supported");
#else
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