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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jjfortherear

Pages: [1]
1
Graphics / Re: SF::Text memory access bug on draw()
« on: January 05, 2013, 11:38:39 am »
I built SFML with cmake, I think it's a couple weeks old (not sure where to find the exact build#).

I fixed (circumnavigated) the issue by making it a vector of pointers to the objects, rather than a vector of objects.  I still don't know why this would cause an issue - as you saw, the sprites drew just fine.

2
Graphics / Re: SF::Text memory access bug on draw()
« on: January 05, 2013, 11:22:14 am »
Also if you actually try to draw a text on top of the door rectangle, then you can't draw the text first and then the rectangle, otherwise the rectangle will cover up the text.

I realize that: the doors are supposed to cover the text.

I'll post a minimal example tomorrow, gotta hit the sack for now.

3
Graphics / SF::Text memory access bug on draw()
« on: January 05, 2013, 10:59:16 am »
I've got a strange problem with drawing text, I made a video describing it and walking through the debugger:



The code can be found here:

https://github.com/odkken/Doors

Call stack:

    ntdll.dll!775915de()   Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]   
    ntdll.dll!775915de()   Unknown
    ntdll.dll!7758014e()   Unknown
>   sfml-graphics-d-2.dll!sf::priv::glCheckError(const char * file, unsigned int line) Line 107   C++
    sfml-graphics-d-2.dll!sf::RenderTarget::draw(const sf::Drawable & drawable, const sf::RenderStates & states) Line 146   C++
    RPG.exe!ShowingDoors::Draw(Game * game) Line 96   C++
    RPG.exe!Game::Draw() Line 30   C++
    RPG.exe!Game::Loop() Line 41   C++
    RPG.exe!main() Line 13   C++
    RPG.exe!__tmainCRTStartup() Line 536   C
    RPG.exe!mainCRTStartup() Line 377   C
    kernel32.dll!769833aa()   Unknown
    ntdll.dll!775a9ef2()   Unknown
    ntdll.dll!775a9ec5()   Unknown


EDIT:

I got it working by making my vector of doors a vector of pointers to doors.  Don't know why that was necessary, but there you go.


4
Graphics / Re: SFML2 Textures being overridden
« on: December 29, 2012, 04:41:40 am »
Thanks, it's the RC.

What exactly do you mean "alive"?

5
Graphics / SFML2 Textures being overridden
« on: December 29, 2012, 03:35:28 am »
Hi, I'm drawing textures and shapes on my render window, and occasionally when I draw shapes, certain textures won't show up (black box in place of the image).  I'm having trouble isolating the problem, but I'm wondering if it might have something to do with the order in which things are drawn?  Whether it's relevant or not, how does sfml decide what's in front/behind?  Is it purely the order in which they're drawn?  Thanks!

I notice it tends to happen when I set a nonzero outline on my shapes.

Pages: [1]
anything