{"action":"closed","issue":{"url":"https://api.github.com/repos/xerpi/sf2dlib/issues/13","labels_url":"https://api.github.com/repos/xerpi/sf2dlib/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/xerpi/sf2dlib/issues/13/comments","events_url":"https://api.github.com/repos/xerpi/sf2dlib/issues/13/events","html_url":"https://github.com/xerpi/sf2dlib/issues/13","id":105579768,"number":13,"title":"sf2d_set_scissor_test has no effect","user":{"login":"uschmann","id":4057692,"avatar_url":"https://avatars.githubusercontent.com/u/4057692?v=3","gravatar_id":"","url":"https://api.github.com/users/uschmann","html_url":"https://github.com/uschmann","followers_url":"https://api.github.com/users/uschmann/followers","following_url":"https://api.github.com/users/uschmann/following{/other_user}","gists_url":"https://api.github.com/users/uschmann/gists{/gist_id}","starred_url":"https://api.github.com/users/uschmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uschmann/subscriptions","organizations_url":"https://api.github.com/users/uschmann/orgs","repos_url":"https://api.github.com/users/uschmann/repos","events_url":"https://api.github.com/users/uschmann/events{/privacy}","received_events_url":"https://api.github.com/users/uschmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T11:40:59Z","updated_at":"2015-09-11T12:25:46Z","closed_at":"2015-09-11T12:25:46Z","body":"Seems like sf2d_set_scissor_test() does not work.\r\nI made a copy of the sample project and modified the main loop:\r\n\r\n```c\r\n\twhile (aptMainLoop()) {\r\n\r\n\t\thidScanInput();\r\n\t\thidCircleRead(&circle);\r\n\t\theld = hidKeysHeld();\r\n\r\n\t\tif (held & KEY_START) {\r\n\t\t\tbreak;\r\n\t\t} else if (held & KEY_TOUCH) {\r\n\t\t\thidTouchRead(&touch);\r\n\t\t\ttouch_x = touch.px;\r\n\t\t\ttouch_y = touch.py;\r\n\t\t} else if (held & (KEY_L | KEY_R)) {\r\n\t\t\tsf2d_set_clear_color(RGBA8(rand()%255, rand()%255, rand()%255, 255));\r\n\t\t}\r\n\r\n\t\tsf2d_start_frame(GFX_TOP, GFX_LEFT);\r\n\t\t\tsf2d_set_scissor_test (GPU_SCISSOR_NORMAL, 0, 0, 100, 100);\t// has no effect\r\n\t\t\tsf2d_draw_rectangle_rotate(260, 20, 40, 40, RGBA8(0xFF, 0xFF, 0x00, 0xFF), -2.0f*rad);\r\n\t\t\tsf2d_draw_rectangle(20, 60, 40, 40, RGBA8(0xFF, 0x00, 0x00, 0xFF));\r\n\t\t\tsf2d_draw_rectangle(5, 5, 30, 30, RGBA8(0x00, 0xFF, 0xFF, 0xFF));\r\n\t\t\tsf2d_draw_texture_rotate(tex1, 400/2 + circle.dx, 240/2 - circle.dy, rad);\r\n\t\tsf2d_end_frame();\r\n\r\n\t\trad += 0.2f;\r\n\r\n\t\tsf2d_swapbuffers();\r\n\t}\r\n```\r\n\r\nExpected result:\r\nJust a part of the scene should be rendered. In fact just a rectangle starting from x:0,y:0 with a width of 100px and height of 100px.\r\n\r\nReal result:\r\nThe whole scene is rendered on the top screen."}}