File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,8 @@ void MainLoop(void* arg)
248
248
{
249
249
if (event.window .event == SDL_WINDOWEVENT_SIZE_CHANGED)
250
250
{
251
- scene->renderOptions .resolution = iVec2 (event.window .data1 , event.window .data2 );
251
+ renderOptions.resolution = iVec2 (event.window .data1 , event.window .data2 );
252
+ scene->renderOptions = renderOptions;
252
253
InitRenderer (); // FIXME: Not all textures have to be regenerated on resizing
253
254
}
254
255
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ namespace GLSLPT
100
100
101
101
quad = new Quad ();
102
102
103
+ glPixelStorei (GL_PACK_ALIGNMENT, 1 );
104
+
103
105
// Create Buffer and Texture for BVH Tree
104
106
glGenBuffers (1 , &BVHBuffer);
105
107
glBindBuffer (GL_TEXTURE_BUFFER, BVHBuffer);
You can’t perform that action at this time.
0 commit comments