YoYoGames / GMRT-Beta

Bug Tracking for new GameMaker Runtime Beta
24 stars 0 forks source link

`gpu_set_alphatestref()` with values above `0x00` blanks screen #142

Closed thennothinghappened closed 5 months ago

thennothinghappened commented 6 months ago

Description

Setting this value to anything higher than 0x00 causes one of two things:

If the Application Surface is enabled, the screen will turn black and nothing will draw. If the Application Surface is disabled, the screen will turn grey and nothing will draw.

GMRT 0.6.0

Expected Change

No response

Steps To Reproduce

Example Code

Black Screen
/// Create ///
gpu_set_alphatestref(0x01);

/// Draw ///
draw_rectangle(0, 0, 20, 20, false);
Grey Screen
/// Create ///
application_surface_draw_enable(false);
application_surface_enable(false);

gpu_set_alphatestref(0x01);

/// Draw ///
draw_rectangle(0, 0, 20, 20, false);

Example Project

GMRT-gml_set_alphatestref-black-or-grey-screen.zip

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

Other Release (Please put the exact version number in your Description)

Which platform(s) are you seeing the problem on?

Windows

Compiler Log File

Sample .yyz File