[haiku-bugs] Re: [Haiku] #8761: Software renderer should gracefully handle unsupported color spaces.

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Sun, 22 Jul 2012 13:32:26 -0000

#8761: Software renderer should gracefully handle unsupported color spaces.
-------------------------------+----------------------------
   Reporter:  xray7224         |      Owner:  kallisti5
       Type:  bug              |     Status:  assigned
   Priority:  normal           |  Milestone:  R1
  Component:  Kits/OpenGL Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  0                |   Platform:  All
-------------------------------+----------------------------

Comment (by kallisti5):

 Yeah, I agree...  I think it does try to return gracefully though on 8-bit
 color:
 http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/opengl/swrast/MesaSoftwareRenderer.cpp#n608

 We try to handle _SetupRenderBuffer failures gracefully here:
 http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/opengl/swrast/MesaSoftwareRenderer.cpp#n599



 However here, not so much...
 http://cgit.haiku-os.org/haiku/tree/src/add-
 ons/opengl/swrast/MesaSoftwareRenderer.cpp#n235


 I probably should check color spaces much earlier on in the renderer.
 Any changes made to swrast need to made identically as possible in
 swrast_legacy.

 I'll take a crack at it :)

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8761#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: