Homebrew Problems writing to the screen buffers

pimathbrainiac

New Member
OP
Newbie
Joined
Aug 1, 2015
Messages
4
Trophies
0
Age
25
XP
46
Country
United States
I'm having a little bit of trouble with writing to the screen buffers right now. I made a program that has the purpose of setting a pixel at the (0,0) coordinate (adjusted so (0,0) is actually top left).

Here's my code: http://pastebin.com/ibkqTnLi

The code compiles fine (duh), but when I run it in Citra, an error about OpenGL rendering (yeah, I know this error is on Citra's side), then the emulator screen pops up blank. I believe that the problem is with my code because I'm able to run the 24bit-color example just fine in Citra.

Thanks for the help in advance!
 

julian20

Well-Known Member
Member
Joined
Jan 10, 2015
Messages
352
Trophies
0
XP
648
Country
Germany
Here is a picture
EDIT: sry doesnt checked that you posted a message
 

Attachments

  • pixeltest3ds.jpg
    pixeltest3ds.jpg
    183 KB · Views: 259

pimathbrainiac

New Member
OP
Newbie
Joined
Aug 1, 2015
Messages
4
Trophies
0
Age
25
XP
46
Country
United States
Actually the problem was in my conversion of coordinates I forgot about zero indexing and did height-y instead of height-1-y

The pixel showed in x=1, which was my hint to how to fix it :P
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: [goes back to 🛌 ] zzzzzzzzzzzzzz +1