From 3b81a0651098573b8e4a7474ebc81ec074fda139 Mon Sep 17 00:00:00 2001 From: MitchellHansen Date: Tue, 4 Apr 2017 02:52:54 -0700 Subject: [PATCH] Also reset the values --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 808d00b..4d933c8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,7 @@ int main() { std::cin.get(); } - cl.create_image_buffer("viewport_image", image_resolution, sf::Vector2f(100, 100), CL_MEM_WRITE_ONLY); + cl.create_image_buffer("viewport_image", image_resolution, sf::Vector2f(0, 0), CL_MEM_WRITE_ONLY); cl.create_buffer("image_res", sizeof(sf::Vector2i), &image_resolution); cl.create_buffer("range", sizeof(sf::Vector4f), (void*)&range, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR);