Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Bug with texture rendering  (Read 10168 times)

0 Members and 1 Guest are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Bug with texture rendering
« Reply #15 on: May 23, 2013, 07:17:05 am »
Quote
Go away from manual new and delete and use RAII instead. See here for some best practices, and here for the reasons why you should use RAII.
You should have had put that into your signature by now, unless you ran out of characters, like I did. :P
Also you'll have hard time convincing people who go to 'prestigious' unis.


body->SetUserData((void*)this);
 
Why are you doing it, do you need that pointer for something? Also, how does player draw/entire player class look like? Your github link is invalid. etc.
« Last Edit: May 23, 2013, 07:20:37 am by FRex »
Back to C++ gamedev with SFML in May 2023

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: Bug with texture rendering
« Reply #16 on: May 23, 2013, 07:32:05 am »
I think that this engine is with bug.

Sometimes it works nice and after some minutes all the sprites is like that screenshot, bugged. I try open the program more times and everything works ok.

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: Bug with texture rendering
« Reply #17 on: May 23, 2013, 07:52:01 am »
After make the two versions of project. With and without pointer and no make difference, i put on github the project with pointer, this is not the problem.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Re: Bug with texture rendering
« Reply #18 on: May 23, 2013, 07:55:39 am »
I think that this engine is with bug.

Sometimes it works nice and after some minutes all the sprites is like that screenshot, bugged. I try open the program more times and everything works ok.
You may be suffering from a Schrodinbug. I am so very sorry.

No, I don't think anybody here claimed pointers were causing the bug. They are, however, extremely dangerous, and we wanted to help save you from the headaches they will cause down the road.

Again, we cannot help you further unless you create a complete and minimal code that demonstrates the bug you are experiencing.

On a purely speculative note, have you made sure your video drivers are up to date?
I use the latest build of SFML2

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: Bug with texture rendering
« Reply #19 on: May 23, 2013, 07:59:19 am »
I think everything is ok.

Im using mac osx 10.8 all updated.

 

anything