Quote:hRet = g_pDDSBack->BltFast(xPos, yPos, g_pDDSOne, &rcRect, DDBLTFAST_SRCCOLORKEY);And yes, those are all valid values being passed. I checked. Believe me, I checked.
Instant program crash?
When I try to call my g_pDDSBack surface (my back buffer), my program crashes entirely. What gives? I call it right before in another function, and it works perfectly.
Try as an additional parameter DDBLTFAST_WAIT and, if you havent done this already ;) check with if(Function == DDERR_...) whats going on!
I've had errors like that. The first time i had one because i didn't zero out the d3d present parameters struct. I don't know why its doing it for you hope you figure it out.
Ever since I tried to put my program into many files, this didn't work.
I can write to the backbuffer in other files, but as soon as I try to access it within my cObject class, it fails.
And I'm using DX7 and directdraw, so I have no idea what you are talking about when you say present parameters :P
I can write to the backbuffer in other files, but as soon as I try to access it within my cObject class, it fails.
And I'm using DX7 and directdraw, so I have no idea what you are talking about when you say present parameters :P
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement