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

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

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: