Author Topic: blitting and GL color  (Read 3259 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: blitting and GL color
« Reply #15 on: April 11, 2012, 09:51:50 am »
what do you mean exactly by 'variations of this'?
Bascially to leave out the color_array stuff, because i couldn't track when i'm disabling/enabling this and in which state it should actually be after your call. But if it doesn't help, it's pointless anyway.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: blitting and GL color
« Reply #16 on: April 11, 2012, 09:52:51 am »
Have you tried to check for gl errors after doing your calls? Maybe it just doesn't want a glColor-call in its current state.

Offline raft

  • quad
  • ******
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: blitting and GL color
« Reply #17 on: April 11, 2012, 10:18:47 am »
sorry, i'm correcting myself, these enable/disable calls somehow didnt enter the application in my last try.

with these glEnable/DisableClientState calls, lines of my colors are corrected. but still some blits are missing

GL10.glGetError returns GL_NO_ERROR

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: blitting and GL color
« Reply #18 on: April 11, 2012, 10:44:51 am »
...and what if you add that dummy-world-stuff in again?

Offline raft

  • quad
  • ******
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: blitting and GL color
« Reply #19 on: April 11, 2012, 10:53:27 am »
yes, that brought back my missing blits :) so the conclusion is.. ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: blitting and GL color
« Reply #20 on: April 11, 2012, 11:12:40 am »
...that this is all a kludgy hack?  ;) I suggest to wrap that stuff somewhere and forget about it...

Offline raft

  • quad
  • ******
  • Posts: 1974
    • View Profile
    • http://www.aptalkarga.com
Re: blitting and GL color
« Reply #21 on: April 11, 2012, 11:16:38 am »
ok, no problem :) i can live with that