Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118117

OpenGL Textures are padded then rounded causing textures to be too big

XMLWordPrintable

      We found on iOS and recently on Beagle that when you try and allocate a 1024x1024px texture we first pad it by 2px in each direction then round to nearest power of 2. The result is a 2048x2048 texture that is a huge waste of space and causes app failures (guessing we run out of texture space very fast).

      We could not see why this padding is needed and Kirill removed it from the D3D pipeline a while back, so seems like we need to do the same for OGL. Thor prototyped a patch to fix during our iOS-fest time which now needs to be cleaned up and put into 3.0.

        1. BlurEffectWithPaddingDisabledOnES2.png
          11 kB
          Thor Johannesson
        2. ComboBoxNoPaddingES2.png
          19 kB
          Thor Johannesson

            thor Thor Johannesson (Inactive)
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: