← Back to team overview

touch-packages team mailing list archive

[Bug 1460149] Re: Visible corruption in SDL apps (Neverball, Neverputt) on Nexus 4 / Nexus 7.

 

AFAIK SDL2 should support 24/32 bit colors... I do find that strange
since on X11:

INFO: SDL_GL_RED_SIZE: requested 5, got 8
INFO: SDL_GL_GREEN_SIZE: requested 5, got 8
INFO: SDL_GL_BLUE_SIZE: requested 5, got 8
INFO: SDL_GL_DEPTH_SIZE: requested 16, got 24

Im not 100% sure why its failing to get the correct requested size, or
rather why mir is not requesting a 24/32bit color. Ill take a look at
this! Hopefully that turns out to be the issue. As it seems by default
to request a 15/16 bi color

http://hg.libsdl.org/SDL/file/704a0bfecf75/src/video/SDL_egl.c#l242

This is where its getting the gl_config (requested size) then setting
the bits internal when it create the egl config. (Also note this is not
the same code X11 runs! Since it wont be using EGL)

So it looks like mir is getting the correct requested size (for the most
parts a 6 instead of a 5). The main issue is why is it requesting a 5?
This could be my fault here for not manually forcing the 24/32 bit or
the clients fault for not forcing it. Ill take a deeper look.

Cheers

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mir in Ubuntu.
https://bugs.launchpad.net/bugs/1460149

Title:
  Visible corruption in SDL apps (Neverball, Neverputt) on Nexus 4 /
  Nexus 7.

Status in Mir:
  Invalid
Status in libsdl2 package in Ubuntu:
  Triaged
Status in mir package in Ubuntu:
  Invalid
Status in unity8 package in Ubuntu:
  Invalid

Bug description:
  https://github.com/pseuudonym404/neverball-touch/issues/2

  Install neverball or neverputt from the click store:-

  https://uappexplorer.com/app/neverputt.lb
  https://uappexplorer.com/app/neverball.lb

  Note they work fine on krillin and arale, however there's corruption
  making the games unusable on Nexus 4 and Nexus 7.

  Simpler test cases are provided at the above linked github issue.
  Attaching them to this bug for persistence.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mir/+bug/1460149/+subscriptions