mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Move hlsl_ctx initialization and cleanup to hlsl_compile_shader().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
3854991154
commit
7400717282
@@ -271,8 +271,7 @@ row_major {return KW_ROW_MAJOR; }
|
||||
|
||||
%%
|
||||
|
||||
int hlsl_lexer_compile(const char *text, enum vkd3d_shader_type type, DWORD major, DWORD minor, const char *entrypoint,
|
||||
struct vkd3d_shader_code *dxbc, struct vkd3d_shader_message_context *message_context)
|
||||
int hlsl_lexer_compile(const char *text, const char *entrypoint)
|
||||
{
|
||||
YY_BUFFER_STATE buffer;
|
||||
int ret;
|
||||
@@ -280,7 +279,7 @@ int hlsl_lexer_compile(const char *text, enum vkd3d_shader_type type, DWORD majo
|
||||
buffer = hlsl__scan_string(text);
|
||||
hlsl__switch_to_buffer(buffer);
|
||||
|
||||
ret = hlsl_parser_compile(type, major, minor, entrypoint, dxbc, message_context);
|
||||
ret = hlsl_parser_compile(entrypoint);
|
||||
|
||||
hlsl__delete_buffer(buffer);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user