-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[examples] shaders_julia_set doesn't fill screen on Macbook Retina #837
Comments
@a3f is high-dpi support flag enabled? |
@a3f, does it only happen with this example? GLSL shader |
Replaced |
Just ran them and it happens as well with:
The others are unaffected.
|
ok, I detected the issue, the screenWidth-screenHeight provided to those shaders do not match render size (scaled to HighDPI) |
As an additional feature to this bug, the following code causes the text to be zoomed 2x BeginTextureMode(F_renderTarget);
ClearBackground(colour);
BeginMode3D(camera);
DrawModel(F_objects[0].model, Vector3Zero(), 1.0f, WHITE);
DrawGrid(10, 1.0f); // Draw a grid
EndMode3D();
DrawTextEx(F_font, text, (Vector2){cur_x,cur_y},fontSize, 0, F_Ink);
EndTextureMode();
BeginDrawing();
ClearBackground(BLACK);
DrawTextureRec(F_framebuffer.texture, (Rectangle){ 0, 0, F_framebuffer.texture.width, -F_framebuffer.texture.height }, (Vector2){ 0,0}, WHITE);
EndDrawing(); however, with the 3d block removed, the text is the correct size BeginTextureMode(F_renderTarget);
ClearBackground(colour);
DrawTextEx(F_font, text, (Vector2){cur_x,cur_y},fontSize, 0, F_Ink);
EndTextureMode();
BeginDrawing();
ClearBackground(BLACK);
DrawTextureRec(F_framebuffer.texture, (Rectangle){ 0, 0, F_framebuffer.texture.width, -F_framebuffer.texture.height }, (Vector2){ 0,0}, WHITE);
EndDrawing(); |
|
Closing this issue, moved to a more specific description. |
Will this ever get fixed? I am using Raylib 3.0.0 and this is exact behavior i get. What helps is to manually move the window, then everything gets rendered correctly. |
@thevojacek actually this issue is related to #1086. It's also macOS dependant. No solution found yet... |
I am running raylib master with macOS 10.14.4 on a macbook pro retina.
The text was updated successfully, but these errors were encountered: