summaryrefslogtreecommitdiff
path: root/libs/hwui/Properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/Properties.cpp')
-rw-r--r--libs/hwui/Properties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/Properties.cpp b/libs/hwui/Properties.cpp
index 1253beb2d2b2..4e7df88b8095 100644
--- a/libs/hwui/Properties.cpp
+++ b/libs/hwui/Properties.cpp
@@ -191,14 +191,14 @@ RenderPipelineType Properties::getRenderPipelineType() {
}
void Properties::overrideRenderPipelineType(RenderPipelineType type) {
-#if !defined(HWUI_GLES_WRAP_ENABLED)
// If we're doing actual rendering then we can't change the renderer after it's been set.
// Unit tests can freely change this as often as it wants, though, as there's no actual
// GL rendering happening
if (sRenderPipelineType != RenderPipelineType::NotInitialized) {
+ LOG_ALWAYS_FATAL_IF(sRenderPipelineType != type,
+ "Trying to change pipeline but it's already set");
return;
}
-#endif
sRenderPipelineType = type;
}