Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da998f48 authored by Steve Kondik's avatar Steve Kondik
Browse files

surfaceflinger: Unbreak casting and other use cases

 * If QCOM WFD isn't in use, we'll get -1 here. Don't try and
   dig into the array because we'll get some random memory back.

Change-Id: Ib14642fea760dc0e659473bb183c5e0116622302
parent 52b84626
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -78,6 +78,10 @@ bool ExHWComposer::isCompositionTypeBlit(const int32_t compType) const {

#if defined(QTI_BSP) && defined(SDM_TARGET)
uint32_t ExHWComposer::getS3DFlag(int disp) const {
    if (disp < 0) {
        return 0;
    }

    const DisplayData& disp_data(mDisplayData[disp]);

    for (size_t i=0 ; i<disp_data.list->numHwLayers-1; i++) {